
Originally Posted by
PavSwag
Like i said, i have no clue what im doing, i just want to install jdk ect + my server files.
Just a quick note, NEVER EVER USE CTRL + C in the terminal
It closes it.
First of all, open the Linux Terminal, this can usually be found within the accessories menu. If not then press CTRL + ALT + F1 - To Exit this type CTRL + ALT + F7. Then type
Code:
sudo apt-get update
You'll then be asked to enter the password.
Once you've updated the server I suggest you reboot it. Then, open the terminal again and type
Code:
sudo add-apt-repository ppa:webupd8team/java
and then [CODE sudo apt-get update && sudo apt-get install oracle-jdk7-installer [/CODE]
Once the installation has completed you should type
Code:
update-alternatives -display java
Once you've done all that simply type Adding Java_Home to enviroment.
First of all, install nano. You can do this by going into the console and typing
Code:
sudo apt-get install nano
Once you've installed nano (It's a Terminal text editor) you can then type
Code:
sudo nano /ect/enviroment
and then find JAVA_HOME and replace whats currently there with
Code:
JAVA_HOME=/usr/lib/jvm/java-7-oracle
Just incase, but if you want to remove Java then type the following
Code:
sudo apt-get remove oracle-jdk7-installer
Hope this helped,
Josh