打开 zip 文件或 JAR 清单时出错:C:Program [英] Error opening zip file or JAR manifest missing : C:Program

查看:20
本文介绍了打开 zip 文件或 JAR 清单时出错:C:Program的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从 https://developers.google.com/appengine/docs/java/webtoolsplatform#dynamic_web_project 我遇到了一个问题:

I'm on step "Running project on the Server" from https://developers.google.com/appengine/docs/java/webtoolsplatform#dynamic_web_project and I ran into a problem:

VM 初始化过程中发生错误代理库未能初始化:仪器打开 zip 文件或 JAR 清单时出错:C:Program

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

另一个人在这里报告了类似的问题:错误打开 zip 文件或 JAR 清单丢失:C:/Program.但解决方案是针对一组不同的技术.我使用的是 Eclipse、Web Tools Platform 和 Google-App-Engine.

Another person reported a similar problem here: Error opening zip file or JAR manifest missing : C:/Program. But the solution was for a different set of technologies. I'm using Eclipse, Web Tools Platform, and Google-App-Engine.

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

Most likely it's because my Java is installed in C:Program Files, a directory which contains a space. But I'm not sure how to fix this. I’m not sure how to safely move the Javajre7 directory to a directory without a space in it.

推荐答案

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

Jordan Fish from Google Cloud Platform Support helped me solve this problem. He said:

就您尝试启动 dev_appserver 时的错误消息而言,我认为这可能是由于您项目的运行配置中的 vm 参数所致.您能否转到运行配置(选择项目,转到运行菜单并选择运行配置),单击参数选项卡,然后查看 VM 参数文本框中列出的内容?

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 参数:

Here was my original VM arguments:

-javaagent:C:Program Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.9.4appengine-java-sdk-1.9.4libagentappengine-agent.jar -Xmx512m -Dappengine.fullscan.seconds=5 -Ddatastore.default_high_rep_job_policy_unapplied_job_pct=50

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

Here is what I changed it to (added double quotes around the directory that's passed as the -javaagent: param):

-javaagent:"C:Program Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.9.4appengine-java-sdk-1.9.4libagentappengine-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

This fixed my problem, I was able to complete step "Running project on the Server" from https://developers.google.com/appengine/docs/java/webtoolsplatform#dynamic_web_project

这篇关于打开 zip 文件或 JAR 清单时出错:C:Program的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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