好吧,首先我在导出天线文件 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 类”