Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Error #594

Open
Ryul0rd opened this issue Oct 10, 2021 · 5 comments
Open

Installation Error #594

Ryul0rd opened this issue Oct 10, 2021 · 5 comments
Labels
question Issue is a question

Comments

@Ryul0rd
Copy link

Ryul0rd commented Oct 10, 2021

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

@Miffyli
Copy link
Contributor

Miffyli commented Oct 10, 2021

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)

@Ryul0rd
Copy link
Author

Ryul0rd commented Oct 10, 2021

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

@Miffyli Miffyli added the question Issue is a question label Oct 10, 2021
@Miffyli
Copy link
Contributor

Miffyli commented Oct 10, 2021

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

@Ryul0rd
Copy link
Author

Ryul0rd commented Oct 11, 2021

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.

@djsamseng
Copy link
Contributor

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 added a commit to djsamseng/minerl that referenced this issue Jun 27, 2022
This came up for a few of us on [this Github issue](minerllabs#594 (comment))
djsamseng added a commit to djsamseng/minerl that referenced this issue Jun 27, 2022
This came up for a few of us on [this Github issue](minerllabs#594 (comment))
Miffyli added a commit that referenced this issue Jul 3, 2022
* Add installation instructions for verifying JDK 8 on linux

This came up for a few of us on [this Github issue](#594 (comment))

* Clarify language

Co-authored-by: Anssi <kaneran21@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants