错误打开zip文件或JAR清单缺失:C:\Program [英] Error opening zip file or JAR manifest missing : C:\Program

查看:2715
本文介绍了错误打开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初始化期间发生错误
代理程序库失败为init:instrument
打开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,一个目录其中包含一个空格。但我不知道如何解决这个问题。我不知道如何安全地将Java\jre7目录移动到没有空格的目录中。

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 Java\jre7 directory to a directory without a space in it.

推荐答案

约旦Google Cloud Platform支援小组帮助我解决了这个问题。他说:

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 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:param传递的目录下添加双引号):

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

-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

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天全站免登陆