FAILURE: Build failed with an exception.
hll20090609 opened this issue · 1 comments
when I want to use "gradlew.bat"to compile the 1.16.5 forge ,
it has a problem
FAILURE: Build failed with an exception.
- What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.9/userguide/gradle_daemon.html
Please read the following process output to find out more:
FAILURE: Build failed with an exception.
-
What went wrong:
java.lang.ExceptionInInitializerError (no error message) -
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
hope you can find the answer
There isn't much information in that error message, but my guess is that you need to install OpenJDK 8, which you can get here, and then you'll need to edit gradle.properties and add the line org.gradle.java.home=C:\\Program Files\\Eclipse Adoptium\\jdk-8.0.332.9-hotspot
to it. (This path may not be 100% correct.)