Thread: Setting up Java on Linux

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 Setting up Java on Linux 
    I r Pimping One
    Guest
    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
    Reply With Quote  
     

  2. #2  
    I r Pimping One
    Guest
    anyone?
    Reply With Quote  
     

  3. #3  
    Registered Member
    JakobWolthers's Avatar
    Join Date
    Aug 2007
    Age
    28
    Posts
    616
    Thanks given
    16
    Thanks received
    3
    Rep Power
    84
    nice, i don't work with linux, nice explained ;D
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    RuneFatality

    Join Date
    May 2009
    Age
    24
    Posts
    2,355
    Thanks given
    1,099
    Thanks received
    388
    Rep Power
    531
    Good for Linux Vps users. Well explained. Repped.
    Reply With Quote  
     

  5. #5  
    I r Pimping One
    Guest
    Thanks guys
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Aug 2008
    Posts
    918
    Thanks given
    1
    Thanks received
    12
    Rep Power
    34
    LinuxMint is FTW =) i use it lol
    Reply With Quote  
     

  7. #7  
    Want a b00b job? PM me.
    Unity's Avatar
    Join Date
    Jun 2008
    Age
    27
    Posts
    711
    Thanks given
    7
    Thanks received
    11
    Rep Power
    298
    This is great! I always needed to know how to install jdk on linux
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Mar 2008
    Age
    26
    Posts
    2,071
    Thanks given
    17
    Thanks received
    68
    Rep Power
    1648
    wrong section, nice turorial.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jul 2009
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    does this work for 317's?
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Oct 2007
    Posts
    2,413
    Thanks given
    254
    Thanks received
    479
    Rep Power
    2785
    Ubuntu:
    Code:
    sudo apt-get install sun-java6-jdk
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •