How to install Java on ubuntu

How to install Java on ubuntu

  1. Download J2SDK package from java.sun.com or find the mirror on Google. download j2sdk-1.4-2_05.bin. remember download the *.bin ,don't rpm.
  2. run the file ./j2sdk-1.4.2_05.bin
  3. and j2sdk1.4.2_05 folder will be created, with root, move this folder to /usr/share, with
    heri@neutrino~]$ sudo mv j2sdk1.4.2_05 /usr/share
  4. make symbolic link, with
    heri@neutrino~]$sudo ln -s /usr/share/j2sdk1.4.2_05
    /usr/share/java
  5. Open and edit /etc/bash.bashrc. fill this in the last row :
    JAVA_HOME=/usr/share/java
    export JAVA_HOME
    PATH=$JAVA_HOME/bin:$PATH
    export PATH
  6. then in terminal type this
    heri@neutrino~]$java --version
  7. if you can see the java version. it means that the configuration is right
thank's to my friend for this information
sorry for my bad english

1 komentar:

Diberdayakan oleh Blogger.