Where is groovy.swing.factory.BindProxyFactory?

When I try to use GraphicsBuilder, I get java.lang.NoClassDefFoundError

for groovy.swing.factory.BindProxyFactory

.

This is my environment:

% java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
% groovy --version
Groovy Version: 1.5.7 JVM: 1.6.0_10
% ls ~/.groovy/lib/graphicsbuilder*
graphicsbuilder-0.6.1.jar
...

      

And this is what I am trying to do:

 % groovysh
Groovy Shell (1.5.7, JVM: 1.6.0_10)
Type 'help' or '\h' for help.
-------------------------------------------------------------------------------
groovy:000> import groovy.swing.SwingBuilder
groovy:000> import groovy.swing.j2d.GraphicsBuilder  
groovy:000> import groovy.swing.j2d.GraphicsPanel
groovy:000> def gb = new GraphicsBuilder()  
ERROR java.lang.NoClassDefFoundError: groovy.swing.factory.BindProxyFactory
        at groovysh_evaluate.run (groovysh_evaluate:5)
        ...

      

Where is the BindProxyFactoryBean?

0


source to share


2 answers


This is in Groovy 1.6 assemblies, not lines 1.5.7. Apparently GfxBuilder 6.1 was built against the Groovy 1.6 codebase.



+1


source


Yes, that's right. Groovy 1.6.x is required for GfxBuilder 6.1 onwards.



0


source







All Articles