java - 打开 zip 文件时出错或缺少 : C:\Program 的 JAR list

标签 java eclipse google-app-engine eclipse-wtp

我正在执行来自 https://developers.google.com/appengine/docs/java/webtoolsplatform#dynamic_web_project 的步骤“在服务器上运行项目”我遇到了一个问题:

Error occurred during initialization of VM agent library failed to init: instrument Error opening zip file or JAR manifest missing : C:\Program

另一个人在这里报告了类似的问题:Error opening zip file or JAR manifest missing : C:/Program .但解决方案适用于一组不同的技术。我正在使用 Eclipse、Web 工具平台和 Google-App-Engine。

很可能是因为我的 Java 安装在 C:\Program Files 中,该目录包含一个空格。但我不确定如何解决这个问题。我不确定如何安全地将 Java\jre7 目录移动到一个没有空格的目录。

最佳答案

来自 Google Cloud Platform Support 的 Jordan Fish 帮助我解决了这个问题。他说:

As far as the error message when you try to start the dev_appserver, I believe this is probably due to a vm argument in the run configuration for your project. Can you please go to the run configuration (with the project selected, go to the Run menu and select Run Configurations), click on the Arguments tab, and see what is listed in the VM arguments text box?

这是我最初的 VM 参数:

-javaagent:C:\Program Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.9.4\appengine-java-sdk-1.9.4\lib\agent\appengine-agent.jar -Xmx512m -Dappengine.fullscan.seconds=5 -Ddatastore.default_high_rep_job_policy_unapplied_job_pct=50

这是我将其更改为(在作为 -javaagent: 参数传递的目录周围添加双引号):

-javaagent:"C:\Program Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.9.4\appengine-java-sdk-1.9.4\lib\agent\appengine-agent.jar" -Xmx512m -Dappengine.fullscan.seconds=5 -Ddatastore.default_high_rep_job_policy_unapplied_job_pct=50

这解决了我的问题,我能够从 https://developers.google.com/appengine/docs/java/webtoolsplatform#dynamic_web_project 完成步骤“在服务器上运行项目”

关于java - 打开 zip 文件时出错或缺少 : C:\Program 的 JAR list ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23530157/

相关文章:

java - Java 中的类型转换作为缺少泛型数组的解决方法

java - 将 ImageWriter 输出设置为 ObjectOutputStream

eclipse - 在 Ubuntu 上安装 Eclipse 时出现问题

java - Eclipse IDE 代码格式 : turning off indentation

java - Eclipse引用.class文件而不是工作区java文件

python - 有没有办法保护谷歌云端点原型(prototype)数据存储?

java - 仅使用 XMLUnit 区分 XML 标签(无文本或属性)

java - 使用 java -jar 命令部署删除向导应用程序

java - 线程 "main"com.google.apphosting.api.ApiProxy$CallNotFoundException : The API package 'mail' or call 'Send()' was not found 中的异常

java - 如何从 Google Datastore(Java 中)删除特定记录?