首先,我遇到了导出天线文件的几个问题,ant build : build.xml,但这很容易修复,因为我找到了解决方案。
现在,当我尝试对eclipseme-build.xml执行同样的操作时,我得到了一个错误:
[taskdef] Could not load definitions from resource antenna.properties.
It could not be found.
BUILD FAILED
C:\Documents and Settings\...\eclipseme-build.xml:21: Problem: failed to create task or type wtkbuild`
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.这行是这样的:
<target depends="-eclipseme-initialize" name="-eclipseme-build">
<echo message="Building source files..."/>
<wtkbuild destdir="${path.build.classes}" encoding="${src.encoding}" source="1.3" sourcepath="" srcdir="${project.root.Client}/res">
<classpath refid="classpath.Client"/>
</wtkbuild>
<wtkbuild destdir="${path.build.classes}" encoding="${src.encoding}" source="1.3" sourcepath="" srcdir="${project.root.Client}/src">
<classpath refid="classpath.Client"/>
</wtkbuild>
顺便问一下,我需要做什么步骤,我可以成功地导出一个jar文件,它将在模拟器上运行,因为现在它说“找不到Midlet类”
发布于 2013-03-21 23:03:09
通过更新ant版本解决了这个问题。
如果您遇到此问题,请先从http://ant.apache.org/bindownload.cgi下载新的Ant版本
然后继续eclipse:"Window“- "Prefereces”- " ant“- "Runtime”Ant在那里你会看到一个按钮Ant Home。
https://stackoverflow.com/questions/15446271
复制相似问题