JAVA_HOME不指向JDK:无法启动谷歌应用程序引擎 [英] JAVA_HOME does not point to the JDK : Unable to start google app engine

查看:172
本文介绍了JAVA_HOME不指向JDK:无法启动谷歌应用程序引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Google应用服务器上的netbeans中运行示例项目时,出现以下错误。服务器不启动。我如何解决这些错误,如果他们存在?我正在使用netbeans 7.1

  BUILD FAILED 
W:\UnderTest\NetbeansCurrent\Guestbook\\\
bproject\\ \\ build-impl.xml:550:执行此行时发生以下错误:
W:\UnderTest\NetbeansCurrent\Guestbook\\\
bproject\build-impl.xml:300:无法找到javac编译器;
com.sun.tools.javac.Main不在类路径中。
也许JAVA_HOME并不指向JDK。
它目前设置为C:\程序文件\Java\jre7



I get the following errors when i try to run a sample project in netbeans on google app server. The server doesn't start up. How can i resolve these errors if they exist ? I am using 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. Currently it points to jre.

这篇关于JAVA_HOME不指向JDK:无法启动谷歌应用程序引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆