简体   繁体   English

Google App Engine 项目未在 Eclipse 中启动

[英]Google App Engine project not starting in Eclipse

I'm running a Google App Engine project in eclipse on ubuntu.我正在 ubuntu 上的 eclipse 中运行 Google App Engine 项目。 After updating to 19.10, the project server is refusing to start in eclipse, with the following error in the error log更新到19.10后,项目服务器拒绝在eclipse启动,错误日志如下

Plug-in: com.google.cloud.tools.eclipse.appengine.localserver

Google Cloud SDK: Error starting server: Invalid Java SDK. /usr/lib/jvm/java-8-oracle/bin/bin/java does not exist.

Session Data:
eclipse.buildId=4.13.0.I20190916-1045
java.version=1.8.0_151
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_IE
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

the JDK is installed on my machine at /usr/lib/jvm/java-8-oracle/bin/java JDK 安装在我的机器上的 /usr/lib/jvm/java-8-oracle/bin/java

I've noticed that the error message has a slightly different directory,there's an extra "/bin" - /usr/lib/jvm/java-8-oracle/bin /bin /java我注意到错误消息的目录略有不同,有一个额外的“/bin” - /usr/lib/jvm/java-8-oracle/bin /bin /java

Does anyone know how I can fix this configuration?有谁知道我可以如何修复这个配置?

(the upgrade to 19.10 probably isn't relevant, but everything was fine before the update) (升级到 19.10 可能不相关,但更新前一切都很好)

Figured out the problem I had included the /bin in the directory of the JRE under Preferences -> Java -> Installed JREs, ie /usr/lib/jvm/java-8-oracle/bin找出问题我已经在 Preferences -> Java -> Installed JREs 下的 JRE 目录中包含 /bin,即 /usr/lib/jvm/java-8-oracle/bin

once I changed this to /usr/lib/jvm/java-8-oracle/ the servers started without a problem一旦我将其更改为 /usr/lib/jvm/java-8-oracle/ 服务器启动没有问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM