NoClassDefFoundError running script

Just updated today from the plugin menu and I get this error when I try to run a script:

java.lang.NoClassDefFoundError: Files\Groovy\Groovy-1/5/1
Exception in thread "main"

This might be related to my groovy home being in C:\Program Files\Groovy\Groovy-1.5.1

The command above shows:
-Dgroovy.home=C:\Program Files\Groovy\Groovy-1.5.1

I think this might need to be surrounded by quotes.

1 comment
Comment actions Permalink

OK, I just copied my Groovy installation to another directory without spaces (just a cntrl-c cntrl-v job, not a reinstallation of Groovy) and changed my Groovy home in JetGroovy and now I get this when I try to run:

Caught: java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
at org.codehaus.groovy.runtime.InvokerHelper.(InvokerHelper.java:46) at groovy.lang.GroovyObjectSupport.(GroovyObjectSupport.java:32) at groovy.lang.Binding.(Binding.java:32) at groovy.lang.GroovyShell.(GroovyShell.java:63) at groovy.ui.GroovyMain.processOnce(GroovyMain.java:489) at groovy.ui.GroovyMain.run(GroovyMain.java:308) at groovy.ui.GroovyMain.process(GroovyMain.java:294) at groovy.ui.GroovyMain.processArgs(GroovyMain.java:111) at groovy.ui.GroovyMain.main(GroovyMain.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: java.lang.SecurityException: sealing violation: can't seal package org.w3c.dom: already loaded at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.codehaus.groovy.tools.RootLoader.oldFindClass(RootLoader.java:142) at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:114) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getDeclaredMethods(Unknown Source) at org.codehaus.groovy.reflection.CachedClass$1.run(CachedClass.java:134) at java.security.AccessController.doPrivileged(Native Method) at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:131) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerMethods(MetaClassRegistryImpl.java:160) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.(MetaClassRegistryImpl.java:122) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.(MetaClassRegistryImpl.java:100) at groovy.lang.GroovySystem.]]>(GroovySystem.java:27)
... 20 more

0

Please sign in to leave a comment.