Minecraft server unable to locate java after Ubuntu update to 16.04

I've been running a minecraft server on ubuntu for some time. This morning, I updated to 16.04 and the server won't launch anymore. The error I'm getting in the terminal is:

bash:/usr/bin/java: No such file or directory

What I've done since getting the error:

sudo apt-get install default-java

didn't work.

sudo apt-get install openjdk-8-jre

this didn't work either. I saw someone on askubuntu suggesting the following:

sudo apt-get install libc6-i386

Tried it and it didn't work either. I'm kind of just throwing stuff at the wall until something sticks, which I know isn't the right way to go about this!

I'm not quite sure what to try next, can someone give me a hand? Thanks, all!

6

1 Answer

Purge all java packages that are installed already by following the instructions here:

Then, do the following to install Oracle's java:

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java<version-of-java>-installer

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like