Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* What went wrong: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper #3897

Closed
Gr3enh4nd opened this issue Jul 9, 2021 · 3 comments

Comments

@Gr3enh4nd
Copy link

1. What did you do?

sudo ./gradlew build

2. What did you expect to see?

编译报错

3. What did you see instead?

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

16:44:19.770 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
16:44:19.770 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:44:19.770 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --scan to get full insights.
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.extensibility.DefaultExtraPropertiesExtension.(DefaultExtraPropertiesExtension.java:29)
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.extensibility.DefaultConvention.(DefaultConvention.java:48)
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.plugins.DefaultConvention.(DefaultConvention.java:28)
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.extensibility.ExtensibleDynamicObject.(ExtensibleDynamicObject.java:60)
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.instantiation.MixInExtensibleDynamicObject.(MixInExtensibleDynamicObject.java:34)
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.DefaultSettings_Decorated.getAsDynamicObject(Unknown Source)
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.SettingsFactory.createSettings(SettingsFactory.java:58)
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.process(ScriptEvaluatingSettingsProcessor.java:61)
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.PropertiesLoadingSettingsProcessor.process(PropertiesLoadingSettingsProcessor.java:38)
16:44:19.771 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.SettingsEvaluatedCallbackFiringSettingsProcessor.process(SettingsEvaluatedCallbackFiringSettingsProcessor.java:34)

@Gr3enh4nd
Copy link
Author

java version "16.0.1" 2021-04-20
Java(TM) SE Runtime Environment (build 16.0.1+9-24)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

@Benson0224
Copy link
Contributor

HI,
java-tron only support JDK8 for compile.
image

Check the detail compile instruction here:
https://github.com/tronprotocol/java-tron/blob/develop/build.md

@Benson0224
Copy link
Contributor

Thanks for your contribution to java-tron.
This issue will be closed as no update for a long time.
Please feel free to re-open this issue if you still see it. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants