Error opening zip file or JAR manifest missing : C:/Program
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\ubiquibacon>set
GRAILS_HOME=C:\Program Files\GGTS\grails-2.0.4
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_25
Path=C:\Program Files\Java\jdk1.7.0_25\bin;C:\Program
Files\GGTS\grails-2.0.4\bin
C:\Users\ubiquibacon>grails
Error opening zip file or JAR manifest missing : C:/Program
Error occurred during initialization of VM
agent library failed to init: instrument
C:\Users\ubiquibacon>
I have two main Grails project I work with. Project "A" is in production
is developed with Grails 2.0.4 using Netbeans, project "B" is still a
prototype and is developed with Grails 2.2.4 using GGTS. I have a .bat
script I run to quickly change my GRAILS_HOME and PATH variables when
switching between the two versions of Grails. This worked well until I
decided to play around and open project "A" in GGTS. Now something is
preventing Grails 2.0.4 from running at all as can be seen from the posted
command line output. My environment variables and path are correct, I have
deleted the .grails directory, and I have restarted my computer, none of
which have helped correct the problem.
The first line of the error is curious because it appears to be looking in
a non-existent path C:\Program. I wonder if the rest of the path may be
getting hacked off because of a space C:\Program Files\??? but that is
just a thought.
I have already tried all the answers to this question, none of which
helped solve my issue.
Any guidance would be appreciated.
Update:
A work around listed in the JIRA issue here says to change line 60 of
startGrails.bat from this:
set
AGENT_STRING=-javaagent:%GRAILS_HOME:\=/%/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-1.0.5.jar
-noverify -Dspringloaded=profile=grails
to this:
set
AGENT_STRING="-javaagent:%GRAILS_HOME:\=/%/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-1.0.5.jar"
-noverify -Dspringloaded=profile=grails
After doing that I get a new error:
C:\Users\westerhold>grails
Exception: java.lang.NumberFormatException thrown from the
UncaughtExceptionHandler in thread "main"
C:\Users\westerhold>
No comments:
Post a Comment