`
bugyun
  • 浏览: 557318 次
社区版块
存档分类
最新评论

IDEA 用Gradle工具Groovy开发报错java.lang.NoClassDefFoundError: groovy/lang/GroovyObject

 
阅读更多

错误信息如下:

D:\ProgramFiles\Java\jdk1.8.0_101\bin\java -Didea.launcher.port=7532 "-Didea.launcher.bin.path=D:\Program Files\JetBrains\IntelliJ IDEA 2016.2.4\bin" -Dfile.encoding=UTF-8 -classpath "D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\charsets.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\deploy.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\access-bridge-64.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\cldrdata.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\dnsns.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\jaccess.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\jfxrt.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\localedata.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\nashorn.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\sunec.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\sunjce_provider.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\sunmscapi.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\sunpkcs11.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\ext\zipfs.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\javaws.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\jce.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\jfr.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\jfxswt.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\jsse.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\management-agent.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\plugin.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\resources.jar;D:\ProgramFiles\Java\jdk1.8.0_101\jre\lib\rt.jar;D:\Program\Common\exampleOne\build\classes\java\main;D:\Program Files\JetBrains\IntelliJ IDEA 2016.2.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain GroovyTmp

Exception in thread "main" java.lang.NoClassDefFoundError: groovy/lang/GroovyObject

at java.lang.ClassLoader.defineClass1(Native Method)

 


 

 

 

问题环境版本:

gradle-4.2

jdk1.8.0_101

apache-maven-3.2.3

IDEA 2016.2.4

 

错误原因:IDEA和Gradle版本问题,把gradle版本降为 gradle-3.0,问题解决。

具体操作如下:



 

  • 大小: 29.7 KB
  • 大小: 129.7 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics