Find the answer to your Linux question:
Results 1 to 4 of 4
I have downloaded jdk6u7-linux-rpm.bin and jdk6u7-linux.bin how do i install these i have to run java programs. and do i need to set classpath and path please explain in detail ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    9

    JDK installation


    I have downloaded jdk6u7-linux-rpm.bin and jdk6u7-linux.bin


    how do i install these i have to run java programs. and do i need to set classpath and path please explain in detail because i m new to fedora9

  2. #2
    Linux Newbie tiersen's Avatar
    Join Date
    May 2008
    Location
    Tokyo,Japan
    Posts
    226
    Hi
    try the following
    Code:
    # chmod a+x jdk6u7-linux-rpm.bin
    # ./jdk6u7-linux-rpm.bin
    "If we lived in a world where the better technology won out, then no doubt everybody and their aunt Fanny would be using GNU/Linux"
    Sam Varghese

  3. #3
    Just Joined! sanjaykatiyar's Avatar
    Join Date
    Mar 2007
    Location
    Bangalore
    Posts
    97
    Quote Originally Posted by tiersen View Post
    Hi
    try the following
    Code:
    # chmod a+x jdk6u7-linux-rpm.bin
    # ./jdk6u7-linux-rpm.bin
    It will install java in the folder from where you have executed this command.

    Then you can set the path and java home in the .bash_profile file.

    PATH=/usr/local/jdk-xxx/bin: (Rest of the entry)

    JAVA_HOME=/usr/local/jdk-xxx
    export JAVA_HOME

    After saving the .bash_profile file execute this file:
    $ source .bash_profile

  4. #4
    Linux Newbie tiersen's Avatar
    Join Date
    May 2008
    Location
    Tokyo,Japan
    Posts
    226
    Quote Originally Posted by sanjaykatiyar View Post
    It will install java in the folder from where you have executed this command.

    Then you can set the path and java home in the .bash_profile file.

    PATH=/usr/local/jdk-xxx/bin: (Rest of the entry)

    JAVA_HOME=/usr/local/jdk-xxx
    export JAVA_HOME

    After saving the .bash_profile file execute this file:
    $ source .bash_profile
    Thank you sanjaykatiyar. You're right.
    Another way to do the stuff is to change the working directory using the ch command before proceeding
    "If we lived in a world where the better technology won out, then no doubt everybody and their aunt Fanny would be using GNU/Linux"
    Sam Varghese

Posting Permissions

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