简体   繁体   English

JAVA_HOME没有指向JDK:无法启动谷歌应用引擎

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

I get the following errors when i try to run a sample project in netbeans on google app server. 当我尝试在谷歌应用服务器上的netbeans中运行示例项目时,我收到以下错误。 The server doesn't start up. 服务器无法启动。 How can i resolve these errors if they exist ? 如果存在,我该如何解决这些错误? I am using netbeans 7.1 我正在使用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"

Install jdk and set JAVA_HOME in environments variables to path that you jdk was installed. 安装jdk并将环境变量中的JAVA_HOME设置为安装jdk的路径。 Currently it points to jre. 目前它指向jre。

Try this- for temporary 试试这个 - 暂时的

Windows 视窗

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

Unix Unix的

    netbeans --jdkhome /usr/bin/yourjdk

If you want to set the option permanently, you can do so in the netbeans.conf file. 如果要永久设置该选项,可以在netbeans.conf文件中执行此操作。 and change . 并改变。

# 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