日期:2014-05-20  浏览次数:20816 次

在线等,编译错误
请问一下,我把J2mePolish集成Eclipse中编译例子程序是报错:BUILD FAILED
D:\workspace\email\build.xml:91: Unable to compile source code for device [Generic/Midp2Cldc11]: 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

Total time: 3 seconds
是什么原因???

------解决方案--------------------
没有配置环境变量
------解决方案--------------------
探讨
重新设置了一下
CLASSPATH
%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\jre\Lib
JAVA_HOME
C:\Program Files\Java\jdk1.6.0_05\
Path
C:\Program Files\PC Connectivity Solution\;C:\Program Files\CSL Arm Toolchain\bin;C:\Program Files\Common Files\Symbian\Tools;C:\Perl\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-…