开发者

"This script or class was runnable but could not be run"

开发者 https://www.devze.com 2023-01-21 09:20 出处:网络
I\'m getting this error when running a groovy script (GroovyRuntimeException), and the top Google results are not clear/concise enough. What exactly does t开发者_Go百科his error mean?Looking at the so

I'm getting this error when running a groovy script (GroovyRuntimeException), and the top Google results are not clear/concise enough. What exactly does t开发者_Go百科his error mean?


Looking at the source, the script class does not have a main method and one of these is true:

  • It has neither a parameterless constructor not one that takes a String array
  • Or the constructor threw an exception

The stack trace should tell you which.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号