anyone?
|
|
Alright guys, I'm fairly new here posting wise.. I made this on Moparscape thinking that it wasn't already posted and there was a tutorial that was different. But, I didn't want to repost the same thing. I didn't find one on here So, I'll post it.
Hello all, I'm making this tutorial on How to set up JDK on a Linux Distro. I'll be using LinuxMint but it should work with other Distro's as Ubuntu, Fedora, Debian, etc.
Also, I didn't see Fat Cookies tutorial until after I made this.. But, mine is different it doesn't use WINE.
Setting up JDK: (not the only way to set it up, You can use the terminal
and skip everything below except setting environment tables)
Terminal: Open terminal and type sudo apt-get install sun-java6-jdk
Manual:
Well, First click [Only registered and activated users can see links. ] to download the latest version of JDK. I downloaded jdk-6u14-linux-i586.bin
Now I suggest moving the file to your home directory, Mine is /home/jake/
Now, make the self-extracting binary executable (chmod +x jdk-6u14-linux-i586.bin)
Now run the binary (./jdk-6u14-linux-i586.bin)
You will now be faced with a agreement press q to skip through it and type yes
Alright, the directory is in our home directory, lets move it to /usr/java (sudo mv jdk1.6.0_14 /usr/java) after you type that you need to enter in your linux password.
Setting up environment variables:
Now type
JAVA_HOME="/usr/java/jdk1.6.0_14"
and you will be able to type another line type the below.
export JAVA_HOME
Ok, so now logout and log back in, and then re-open this tutorial.
Now open back up your terminal and type
echo $JAVA_HOME
Your echo should be
/usr/java/jdk1.6.0_14
Compiling & Running (thanks to Moparisthebest):
Compiling:
Go to terminal and cd to your folder for me it was
cd /home/jake/server
then type javac *.java
Running:
Go to terminal and cd to your folder (as above)
then type java server

Good for Linux Vps users. Well explained. Repped.
LinuxMint is FTW =) i use it lol
This is great! I always needed to know how to install jdk on linux![]()

wrong section, nice turorial.
does this work for 317's?

Ubuntu:Code:sudo apt-get install sun-java6-jdk
| « Herblore Skill(Mixing, XP Rate, all correct!) | How to add and remove Npc's » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |