Grails 2.0.4错误打开zip文件或JAR清单缺少Springloaded [英] Grails 2.0.4 Error opening zip file or JAR manifest missing Springloaded

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

问题描述

我刚刚下载了Grails 2.0.4并将其解压到/opt/grails/grails-2.0.4/,并确保GRAILS_HOME环境变量是正确的。但是每当我尝试运行grails命令时,出现以下错误:

I've just downloaded Grails 2.0.4 and extracted it to /opt/grails/grails-2.0.4/ and made sure that the GRAILS_HOME environment variable is correct. But whenever I try run the "grails" command, I get the following error:

Error opening zip file or JAR manifest missing : /opt/grails/grails-2.0.4/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-1.0.2.jar
Error occurred during initialization of VM
agent library failed to init: instrument

我不明白问题可能出在哪里。我一直在完全相同的机器上以完全相同的方式成功使用Grails-2.0.1。我试着重新下载grails-2.0.4.zip文件,希望它是存档的问题,但这并没有帮助。我也从grails-2.0.1 /目录复制了springloaded-core-1.0.2.jar,但这只是导致了另一组错误。

I don't understand what the problem could be. I've been using Grails-2.0.1 for months successfully in exactly the same way on exactly the same machine. I've tried re-downloading the grails-2.0.4.zip file in the hopes that it was a problem with the archive, but that didn't help. I also copied springloaded-core-1.0.2.jar from the grails-2.0.1/ directory, but that just caused another set of errors.

会出错吗?

推荐答案

看起来您的PATH尚未正确更新。换句话说,您正在运行GRAILS_HOME设置为2.0.4的2.0.1 grails脚本。你可以知道,因为在错误消息 - 1.0.2中报告的弹簧加载版本不是Grails 2.0.4所需的版本(以帮助其他人诊断这个问题)。

It looks like your PATH has not been updated correctly. In other words, you are running the 2.0.1 grails script with GRAILS_HOME set to 2.0.4. You can tell because the version of spring loaded reported in the error message - 1.0.2 - is not the one required by Grails 2.0.4 (to help others diagnose this issue).

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

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