So, I recently got a vps from 99stack, which is lovely by the way, but i had some trouble during the starting process of making my minecraft server work. So here's a nice little guide on how to install it.
go to : https://java.com/en/download/linux_manual.jsp to download a x64 version of linux.
Connect to your server via FTP and access the home file.
Create a new directory whatever you want mine is for example /home/jre/
Move your Java File to the /home/jre/ directory, mine was jre-8u91-linux-x64.tar.gz and I moved that to /home/jre/
Open PuTTY (http://www.putty.org/) and execute cd /home/jre/
do $ sudo tar xvzf (your file name).tar.gz -C /home/jre/
for example, sudo tar xvzf jre-8u91-linux-x64.tar.gz -C /home/jre/
then go to your /home/jre/ directory
now you do this
JAVA_HOME=/home/jre/jre1.8.0_91/ <- type that into putty
now we're going to install alternatives,
type : sudo update-alternatives --install /home/jre/jre1.8.0_91/bin/java ${JAVA_HOME%/}/bin/java 20000
and : sudo update-alternatives --install /home/jre/jre1.8.0_91/bin/javaws ${JAVA_HOME%/}/bin/javaws 20000
Execute : update-alternatives --config java
and you should get something like so
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
- 0 /opt/java/jdk1.8.0_05/bin/java 20000 auto mode
1 /opt/java/jdk1.8.0_05/bin/java 20000 manual mode
2 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 manual mode
After this do : java -version(or java --version) and it should reply with
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Finally go to your minecraft directory cd /home/admin/minecraft
and ./spigot-25565.jar
Your server should be up and running! Admins, please tag this as important!