尝试使用 GraphicsBuilder 时,我得到一个java.lang.NoClassDefFoundError
for groovy.swing.factory.BindProxyFactory
.
这是我的环境:
% 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
...
这就是我尝试做的事情:
% 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)
...
BindProxyFactoryBean 在哪里?