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

查看:17
本文介绍了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 似乎没有正确更新.换句话说,您正在运行 2.0.1 grails 脚本并将 GRAILS_HOME 设置为 2.0.4.您可以判断,因为错误消息中报告的 spring 加载版本 - 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天全站免登陆