JAVA_HOME指向错误的地方
我似乎有一个错误指定的 JAVA_HOME 变量。我可以解决很多事情,但现在我似乎陷入困境。我正在尝试使用 Google App Engine 并上传应用程序。
当我这样做时,我收到错误:
无法找到基于java.home的javac可执行文件,尝试了“C:\Program Files\Java\jre6\bin\javac.exe”和“C:\Program Files\Java\bin\javac.exe”
我不明白为什么它正在看那里,执行 echo %JAVA_HOME% 给我:
C:\Program Files\Java\jdk1.6.0_14
这是 Java 实际所在的位置。我想我最大的希望可能就是把 Java 放在它正在寻找的地方——你能想到更好的东西吗?
I seem to have an incorrectly specified JAVA_HOME variable. I can get around it for many things but now I am seem to be stuck. I am trying to use the Google App Engine and upload an application.
When I do so I get the error that the error:
cannot find javac executable based on java.home, tried "C:\Program Files\Java\jre6\bin\javac.exe" and "C:\Program Files\Java\bin\javac.exe"
I don't understand why it is looking there, doing echo %JAVA_HOME% gives me:
C:\Program Files\Java\jdk1.6.0_14
Which is where Java actually is. I am thinking my best hope might be to just put Java where it is looking for it - can you think of anything better.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来可能是一个错误:
http://code.google.com /p/googleappengine/issues/detail?id=1226
有很多建议的解决方法/解决方案,但是bug 条目中的注释 #24 似乎很有希望:
Looks like it's possibly a bug:
http://code.google.com/p/googleappengine/issues/detail?id=1226
There are lots of suggested workarounds/solutions, but comment #24 in the bug entry seems promising:
仔细检查 JAVA_HOME 路径中是否有任何拼写错误。
Double check for any typo in the JAVA_HOME path.
或者只需将“C:\Program Files\Java\jdk1.6.0_14\bin”添加到您的%PATH%
Or simply add "C:\Program Files\Java\jdk1.6.0_14\bin" to your %PATH%