MineDojo / Voyager

An Open-Ended Embodied Agent with Large Language Models
https://voyager.minedojo.org/
MIT License
5.4k stars 493 forks source link

Having issues running Gradlew Build with better-respawn #23

Closed christianortel closed 1 year ago

christianortel commented 1 year ago

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

xieleo5 commented 1 year ago

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.

christianortel commented 1 year ago

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!

xieleo5 commented 1 year ago

Close since the issue is resolved.