簡體   English   中英

JAVA_HOME沒有指向JDK:無法啟動谷歌應用引擎

[英]JAVA_HOME does not point to the JDK : Unable to start google app engine

當我嘗試在谷歌應用服務器上的netbeans中運行示例項目時,我收到以下錯誤。 服務器無法啟動。 如果存在,我該如何解決這些錯誤? 我正在使用netbeans 7.1

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"

安裝jdk並將環境變量中的JAVA_HOME設置為安裝jdk的路徑。 目前它指向jre。

試試這個 - 暫時的

視窗

netbeans.exe --jdkhome "c:\JDK\path"  

Unix的

    netbeans --jdkhome /usr/bin/yourjdk

如果要永久設置該選項,可以在netbeans.conf文件中執行此操作。 並改變。

# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="c:\your\JDK\path"

將聽到可能的解決方案: 在netbeans中設置jdk路徑,或者,如果在windows env中設置JAVA_HOME,則使用%JAVA_HOME%

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM