minerl
minerl copied to clipboard
Installation Error
Followed official installation instruction and got this error. minerl_logs.txt
Hey. You seem to have a wrong version of java installed, based on all the errors. Make sure you have JDK 8 installed (other versions will not work. You can check this with javac -version
)
It says I've got the following: javac 1.8.0_292 Is this not correct?
Oh, that should be correct o: . I was assuming java version was at fault given all the compilation errors. I just tried doing fresh install of MineRL with same JDK version, and things worked out. Things to try out:
- Make sure that the correct javac version is used for installation (if you are running installation in some code editor, for example, it might change Java path).
- Try clearing caches (gradle and pypi caches) and reinstalling MineRL (e.g. removing
.gradle
directory in your home directory). - If you are on Windows, check the Windows FAQ
Found the problem. I had installed Java 8 correctly but my system was still using the default Java 11 install. All I had to do was manually switch to the new installation using sudo update-alternatives --config java
. Might want to consider making a note of this in the official installation instructions as this seems like it would be a somewhat common issue.
Found the problem. I had installed Java 8 correctly but my system was still using the default Java 11 install. All I had to do was manually switch to the new installation using
sudo update-alternatives --config java
. Might want to consider making a note of this in the official installation instructions as this seems like it would be a somewhat common issue.
Thank you! Also want to second adding this to the installation docs as I'm sure many developers would have newer versions of java installed