minerl icon indicating copy to clipboard operation
minerl copied to clipboard

Installation Error

Open Ryul0rd opened this issue 3 years ago • 5 comments

Followed official installation instruction and got this error. minerl_logs.txt

Ryul0rd avatar Oct 10 '21 22:10 Ryul0rd

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)

Miffyli avatar Oct 10 '21 22:10 Miffyli

It says I've got the following: javac 1.8.0_292 Is this not correct?

Ryul0rd avatar Oct 10 '21 22:10 Ryul0rd

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

Miffyli avatar Oct 10 '21 22:10 Miffyli

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.

Ryul0rd avatar Oct 11 '21 00:10 Ryul0rd

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

djsamseng avatar Jun 27 '22 20:06 djsamseng