CodeNameone模拟器启动问题 [英] CodeNameone Simulator Launch Issue
本文介绍了CodeNameone模拟器启动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近JDK升级后,我遇到了Codenameone的问题。试图以多种方式解决该问题,但没有运气。
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
推荐答案
<我猜您正在使用Eclipse,而您的JAVA_HOME环境变量指向的是您计算机上安装的JRE,而不是JDK。确保JDK的java / javac命令位于OS路径中的第一个位置(在JRE命令之前),并确保JAVA_HOME指向JDK目录,然后运行Eclipse。
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.
这篇关于CodeNameone模拟器启动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文