首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

ant 打包有关问题

2012-01-23 
ant 打包问题E:\workspace\moloonsonny2.0 antUnabletolocatetools.jar.ExpectedtofinditinC:\ProgramFil

ant 打包问题
E:\workspace\moloonsonny2.0> ant
Unable   to   locate   tools.jar.   Expected   to   find   it   in   C:\Program   Files\Java\jre1.5.
0_06\lib\tools.jar
Buildfile:   build.xml

init:

prepare-src:

compile:
        [javac]   Compiling   687   source   files   to   E:\workspace\moloonsonny2.0\build

BUILD   FAILED
E:\workspace\moloonsonny2.0\build.xml:60:   Unable   to   find   a   javac   compiler;
com.sun.tools.javac.Main   is   not   on   the   classpath.
Perhaps   JAVA_HOME   does   not   point   to   the   JDK.
It   is   currently   set   to   "C:\Program   Files\Java\jre1.5.0_06 "

Total   time:   1   second


求救,这个问题怎么解决呢?

[解决办法]
错误信息多明白啊:
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre1.5.0_06

热点排行