CodeNameone Simulator Launch Issue

∥☆過路亽.° 提交于 2019-12-25 02:45:00

问题


I am facing issues with Codenameone after recent JDK upgrade. Tried to resolve it in multiple ways but no luck.

jar:
 [echo] Compile is forcing compliance to the supported API's/features for maximum device       compatibility. This allows smaller
 [echo]             code size and wider device support
 [copy] Copying 2 files to C:\Appstek\Workspace\AppsMobile\build\tmp
[javac] C:\Appstek\Workspace\AppsMobile\build.xml:130: warning: 'includeantruntime' was  not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 13 source files to C:\Appstek\Workspace\AppsMobile\build\tmp
[javac] Error: Could not find or load main class com.sun.tools.javac.Main

BUILD FAILED
C:\Appstek\Workspace\AppsMobile\build.xml:130: Compile failed; see the compiler error output for details.

Total time: 1 second

回答1:


I'm guessing you are using Eclipse and that your JAVA_HOME environment variable is pointing to a JRE installed on your machine instead of to a JDK. Make sure the java/javac commands of the JDK are first in your OS path (before the JRE commands) and make sure JAVA_HOME points at the JDK directory then run Eclipse.



来源:https://stackoverflow.com/questions/22623848/codenameone-simulator-launch-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!