2014-03-25 35 views
0

在最近的JDK升級後,我遇到了Codenameone的問題。試圖以多種方式解決它,但沒有運氣。CodeNameone模擬器啓動問題

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 

回答

2

我猜你正在使用Eclipse,並且你的JAVA_HOME環境變量指向安裝在你的機器上而不是JDK上的JRE。確保JDK的java/javac命令第一次位於OS路徑中(在JRE命令之前),並確保JAVA_HOME指向JDK目錄,然後運行Eclipse。