I manually added groovypp-all:0.4.231_1.8.0 to my classpath.
If my script is called test.gpp and contains:
println 'hello world'
Then I get
java.lang.NoClassDefFoundError: groovyjarjarasm/asm/Opcodes
at java.lang.ClassLoader.defineClass1(Native Method)
If I then add the groovy-all 1.8x jar then I get a different exception:
java.lang.AbstractMethodError
at org.codehaus.groovy.classgen.AsmClassGenerator.visitConstructorOrMethod(AsmClassGenerator.java:266)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructor(ClassCodeVisitorSupport.java:119)
at org.codehaus.groovy.classgen.AsmClassGenerator.visitConstructor(AsmClassGenerator.java:361)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1052)
Any ideas on how to run this in GroovyConsole?
--
Hamlet D'Arcy
haml...@gmail.com
Is it possible to use Groovy++ from the standard GroovyConsole? I
can't get it to work.
I manually added groovypp-all:0.4.231_1.8.0 to my classpath.