how do I configure groovy SDK?

I think that this error:

/usr/lib/jvm/java-7-openjdk-amd64/bin/java -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/thufir/idea-IC-139.1117.1/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/javazic.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/management-agent.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/compilefontconfig.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/home/thufir/IdeaProjects/groovy/out/production/groovy:/home/thufir/.gvm/groovy/current/lib/xstream-1.4.7.jar:/home/thufir/.gvm/groovy/current/lib/groovy-templates-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/junit-4.12.jar:/home/thufir/.gvm/groovy/current/lib/bsf-2.4.0.jar:/home/thufir/.gvm/groovy/current/lib/gpars-1.2.1.jar:/home/thufir/.gvm/groovy/current/lib/groovy-groovydoc-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/ivy-2.4.0.jar:/home/thufir/.gvm/groovy/current/lib/groovy-nio-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/groovy-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/groovy-jsr223-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/jsr166y-1.7.0.jar:/home/thufir/.gvm/groovy/current/lib/groovy-swing-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/testng-6.8.13.jar:/home/thufir/.gvm/groovy/current/lib/multiverse-core-0.7.0.jar:/home/thufir/.gvm/groovy/current/lib/jline-2.12.jar:/home/thufir/.gvm/groovy/current/lib/ant-junit-1.9.4.jar:/home/thufir/.gvm/groovy/current/lib/groovy-docgenerator-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/hamcrest-core-1.3.jar:/home/thufir/.gvm/groovy/current/lib/groovy-sql-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/openbeans-1.0.jar:/home/thufir/.gvm/groovy/current/lib/ant-1.9.4.jar:/home/thufir/.gvm/groovy/current/lib/groovy-servlet-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/groovy-groovysh-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/groovy-console-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/jansi-1.11.jar:/home/thufir/.gvm/groovy/current/lib/jsp-api-2.0.jar:/home/thufir/.gvm/groovy/current/lib/ant-antlr-1.9.4.jar:/home/thufir/.gvm/groovy/current/lib/commons-cli-1.2.jar:/home/thufir/.gvm/groovy/current/lib/groovy-bsf-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/qdox-1.12.1.jar:/home/thufir/.gvm/groovy/current/lib/servlet-api-2.4.jar:/home/thufir/.gvm/groovy/current/lib/jcommander-1.47.jar:/home/thufir/.gvm/groovy/current/lib/groovy-test-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/groovy-jmx-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/groovy-ant-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/groovy-xml-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/groovy-json-2.4.1.jar:/home/thufir/.gvm/groovy/current/lib/commons-logging-1.2.jar:/home/thufir/.gvm/groovy/current/lib/xmlpull-1.1.3.1.jar:/home/thufir/.gvm/groovy/current/lib/ant-launcher-1.9.4.jar:/home/thufir/.gvm/groovy/current/lib/groovy-testng-2.4.1.jar:/home/thufir/idea-IC-139.1117.1/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain GroovyJMSExample
Exception in thread "main" java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:191)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)
Caused by: java.lang.RuntimeException: No suitable ClassLoader found for grab
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
    at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:232)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:244)
    at groovy.grape.GrapeIvy.chooseClassLoader(GrapeIvy.groovy:181)
    at groovy.grape.GrapeIvy$chooseClassLoader.callCurrent(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:163)
    at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:247)
    at groovy.grape.Grape.grab(Grape.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
    at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43)
    at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:99)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:191)
    at GroovyJMSExample.
                    def msg = createTextMessage("test")
                    q.send(msg)
                }
            }
        }
    }

    static void main(String[] args) {
        sendMessage()
    }
}
thufir@doge:~$

---
Original message URL: https://devnet.jetbrains.com/message/5536977#5536977

Please sign in to leave a comment.