Voyager icon indicating copy to clipboard operation
Voyager copied to clipboard

Having issues running Gradlew Build with better-respawn

Open christianortel opened this issue 2 years ago • 2 comments

It seems I am unable to run the code gradlew build after removing forge from the string next to common and fabric. Upon entering it says an error, ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the location of your Java installation.

I have set my environment variables quite a few times and still am unable to run the code after resetting, etc

christianortel avatar May 28 '23 16:05 christianortel

Hi, thanks for your interest in this project! First, make sure you are using Java 17, this mod requires exactly that version to compile. Second, you can verify if the environment variable is correctly configured by executing the command echo $JAVA_HOME$. Lastly, if nothing of these things works, you can manually add one line org.gradle.java.home=YOUR_JAVA_HOME in gradle.properties.

xieleo5 avatar May 29 '23 03:05 xieleo5

thank you, i ended up luckily fixing this issue shortly after, was having issues setting up the env variables paths but now i am receiving a new error that I have submitted!

christianortel avatar May 29 '23 03:05 christianortel

Close since the issue is resolved.

xieleo5 avatar May 31 '23 06:05 xieleo5