简体   繁体   中英

Cannot run Grails application in Grails/Groovy Tool Suite 3.6

This is the error that I am getting when I try to start the application:

grails console
Loading Grails 2.4.4
|Configuring classpathDec 24, 2015 11:14:34 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

.
|Environment set to development
.................................
|Packaging Grails application
....................................
|Running Grails application
Error opening zip file or JAR manifest missing : C:\Program%20Files%20(x86)\grails3.6\ggts-bundle\grails-2.4.4\lib\org.springframework\springloaded\jars\springloaded-1.2.1.RELEASE.jar
Error occurred during initialization of VM agent library failed to init: instrument
Error |
Forked Grails VM exited with error

Error opening zip file or JAR manifest missing : C:\\Program%20Files%20(x86)\\grails3.6\\ggts-bundle\\grails-2.4.4\\lib\\org.springframework\\springloaded\\jars\\springloaded-1.2.1.RELEASE.jar

This question is old but I struggled the same problem yesterday. The solution was to copy grails or your whole GGTS-Bundle to a location without any spaces in it's name. In addition you might need to update the springloaded.jar since there are a errors with a few JDK versions. See here and here for help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM