General error during conversion: No suitable ClassLoader found for grab

好久不见. 提交于 2019-11-30 20:31:04

It's all about what classloaders are involved. For example I see the same problem with running groovy from ant. I seems because the system classloader when you run groovy under ant or web start is not a groovy class loader or a root loader. See isValidTargetClassLoader() from GrapeIvy.groovy.

One solution to the problem would be to make sure you have a groovy RootLoader, add all necessary classpath to it in your script and then run your app from your groovy script/class. Would be tricky with web start I guess.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!