EclipseME eclipseme-build.xml

时间:2013-03-16 06:24:47

标签: java eclipse

首先,我遇到了导出Antenna文件的几个问题,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类”

1 个答案:

答案 0 :(得分:0)

通过更新ant版本解决了这个问题。

如果您遇到此问题,请先从http://ant.apache.org/bindownload.cgi

下载新的Ant版本

然后继续日食: “Window” - “Prefereces” - “Ant” - “Runtime”蚂蚁,你会看到一个按钮Ant Home。