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 directoryWhat I've done since getting the error:
sudo apt-get install default-javadidn't work.
sudo apt-get install openjdk-8-jrethis didn't work either. I saw someone on askubuntu suggesting the following:
sudo apt-get install libc6-i386Tried 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!
61 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