Wednesday, June 27, 2012

4. Installing Java GUI

1. Use the link to download the Java 1.6 :
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jre-6u6-oth-JPR
2. Download the package "Linux RPM in self-extracting file".
3. Change directories using the 'cd' command to reach the directory where the downloaded package is located.
4. Add execute permission to the JDK file (the downloaded package) using the command :
chmod +x jdk-6u6-linux-i586-rpm.bin

5. Install JDK using the command : ./jdk-6u6-linux-i586-rpm.bin. Scroll down and type 'y' when prompted.6. Install the key for the JPackage repository.
rpm --import http://jpackage.org/jpackage.asc


7. Install the JPackage repsoitory information for yum.
cd /etc/yum.repos.d
wget http://www.jpackage.org/jpackage17.repo

8. Install the Java RE using :
yum -y --enablerepo=jpackage-generic-nonfree install java-1.6.0-sun-compat.i586

9. Set default Java path to the new JRE, i.e., select number corresponding to jre-1.6.0-sun using the command : /usr/sbin/alternatives --config java

6 comments:

  1. Is it need any amount to install? bcz we didn’t get the result as you specified.

    ReplyDelete
    Replies
    1. i am sorry i didn’t get your question.. what do you mean when you say “amount”?

      Delete
    2. Hi…….
      I asked installation needs any money?
      and please tell me how to set the java path.

      Set default Java path to the new JRE, i.e., select number corresponding to jre-1.6.0-sun.

      Delete
    3. absolutely not.. all these stuff are open source.. so you wouldn’t have to pay anything..

      about setting the path.. did you install the Java Runtime Environment (JRE)?

      Delete
    4. sorry we get ur reply little bit late .Ya…we ‘ve installed JRE . but we don’t know how to set the path

      Delete
    5. use the following command to find available java versions : /usr/sbin/alternatives --config java

      choose the appropriate option..

      Delete