[Groovy] eclipse中怎么运行groovy?

tomcatlee 2009-06-08
eclipse中怎么运行groovy?
已经下载了groovy插件,有代码自动完成功能了,也能提示编译错误,但是就是不能运行groovy类,运行就报错:
java.lang.NoClassDefFoundError: EachTest
Caused by: java.lang.ClassNotFoundException: EachTest
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread "main"
Global site tag (gtag.js) - Google Analytics