Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here's a video I made about the installation:
- https://www.youtube.com/watch?v=Ow40souEW1s
- 1: sudo add-apt-repository ppa:openjdk-r/ppa
- 2: sudo apt-get install openjdk-8-jdk
- 3: sudo update-alternatives --config java
- On the left there are a couple of numbers.
- Look at the number next to the row where it says "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java"
- Type that number and press Enter
- 4: sudo nano /etc/environment
- Add text below on a new row.
- JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java"
- Then save and exit. Ctrl + O and press Enter. Then Ctrl + X
- 5: source /etc/environment
- 6: echo $JAVA_HOME
- 7: java -version
- For Minecraft users:
- If the game doesn't start, try this:
- Go to Launch Options
- Activate advanced settings at the top
- Click on the profile you want to edit
- Activate Java executable
- In the text box next to it, paste this in:
- /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement