當我嘗試在谷歌應用程序服務器上的NetBeans中運行示例項目時,出現以下錯誤。服務器不啓動。我如何解決這些錯誤,如果他們存在?我正在使用netbeans 7.1JAVA_HOME不指向JDK:無法啓動谷歌應用程序引擎
BUILD FAILED
W:\UnderTest\NetbeansCurrent\Guestbook\nbproject\build-impl.xml:550: The following error occurred while executing this line:
W:\UnderTest\NetbeansCurrent\Guestbook\nbproject\build-impl.xml:300: 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\jre7"
只是重新命名您的jre目錄一分鐘,然後重試。 – Lucifer
您注意到它說JAVA_HOME指向Java運行時環境(JRE),而不是Java開發工具包(JDK)? –
>>> JAVA_HOME必須指向JDK主目錄,而不是JRE –