Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
guys pls help me to install jdk.I already downloaded jdk.I tried: apt-get install fakeroot java-package then: fakeroot make-jpkg jre-1_5_0_03-linux-i586.bin It didn't work.Pls help me if any one knows the method ...
  1. #1
    Just Joined! mlhazan's Avatar
    Join Date
    Jul 2007
    Posts
    53

    Unhappy pls help me to install JDK

    guys pls help me to install jdk.I already downloaded jdk.I tried:

    apt-get install fakeroot java-package
    then:

    fakeroot make-jpkg jre-1_5_0_03-linux-i586.bin

    It didn't work.Pls help me if any one knows the method to install jdk.

  2. #2
    Just Joined! giacomella's Avatar
    Join Date
    Jul 2007
    Location
    Bologna, Italy
    Posts
    10
    Hi mlhazan!
    I installed jdk on debian just a couple weeks ago, but i didn't followed the way you describe here...
    First of all: the package you are trying to install is the jre, not the jdk...
    Then, it seems to me the package you got with apt-get is the sun version of the j{dk,re}, which is the one I used: I downloaded it (and, if you want, also the jre after) directly from Sun website (Java SE Downloads - Previous Release - JDK 5).
    After that, I can suggest you to install it following the instructions given by the vendor (you can find them at the web address above)...
    I didn't met any problem... But if you are in trouble, I can send you the commands list I used.
    Keep me up to date, good luck!

  3. #3
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    Hi

    Sun's JDK has a nice graphical installer.
    Download the newest version of jdk from sun's home page in .bin format than install it.
    ./jdk_from_sun.bin

  4. #4
    Just Joined! mlhazan's Avatar
    Join Date
    Jul 2007
    Posts
    53

    Unhappy Do U Know How To Install Jdk?

    Quote Originally Posted by giacomella View Post
    Hi mlhazan!
    I installed jdk on debian just a couple weeks ago, but i didn't followed the way you describe here...
    First of all: the package you are trying to install is the jre, not the jdk...
    Then, it seems to me the package you got with apt-get is the sun version of the j{dk,re}, which is the one I used: I downloaded it (and, if you want, also the jre after) directly from Sun website (Java SE Downloads - Previous Release - JDK 5).
    After that, I can suggest you to install it following the instructions given by the vendor (you can find them at the web address above)...
    I didn't met any problem... But if you are in trouble, I can send you the commands list I used.
    Keep me up to date, good luck!
    pLEASE HELP ME TO INSTALL JDK

  5. #5
    Just Joined! giacomella's Avatar
    Join Date
    Jul 2007
    Location
    Bologna, Italy
    Posts
    10
    pLEASE HELP ME TO INSTALL JDK
    It's really easy to install jdk: after you downloaded the package from the Sun website (address in previous post, follow the "JDK 5.0 Update 12" download link, accept the license agreement on top of new page and look for the "Linux self-extracting file"), just move it to the place you want to install to (eg /usr/, /usr/local/, /usr/share/, /opt/, ... be sure you have the right permissions to do that), change dir to the same folder and then run

    Code:
    ./jdk-1_5_0_12-linux-i586.bin
    That's all. A graphical interface will then ask you to read and accept the licence and will automatically do all the rest.

    Good luck!

  6. #6
    Just Joined! mlhazan's Avatar
    Join Date
    Jul 2007
    Posts
    53

    Unhappy Pls help

    Quote Originally Posted by giacomella View Post
    It's really easy to install jdk: after you downloaded the package from the Sun website (address in previous post, follow the "JDK 5.0 Update 12" download link, accept the license agreement on top of new page and look for the "Linux self-extracting file"), just move it to the place you want to install to (eg /usr/, /usr/local/, /usr/share/, /opt/, ... be sure you have the right permissions to do that), change dir to the same folder and then run

    Code:
    ./jdk-1_5_0_12-linux-i586.bin
    That's all. A graphical interface will then ask you to read and accept the licence and will automatically do all the rest.

    Good luck!
    I am really new in command terminal .My jdk file(jdk-1_5_0_12-linux-i586.bin) is on the desktop.So what should I do?please tell me the step by step process.

  7. #7
    Just Joined! giacomella's Avatar
    Join Date
    Jul 2007
    Location
    Bologna, Italy
    Posts
    10
    I am really new in command terminal .My jdk file(jdk-1_5_0_12-linux-i586.bin) is on the desktop.So what should I do?please tell me the step by step process.
    Ok, the first step is done. Now you get two more.
    The first is to choose a location in your filesystem. In the previous post I told you about /usr, /usr/local, etc, but I think you should better choose /home/yourusername.
    So
    be sure to locate your BASH prompt to /home/yourusername/Desktop
    (usually, when you open a new shell your prompt is placed into your home dir, so you only need to
    Code:
    cd Desktop/
    )
    and just type
    Code:
    mv jdk-1_5_0_12-linux-i586.bin ../
    to move the installer to the installation directory.

    The second step is the one I told you last time:
    go back to your home dir (cd ../) and type
    Code:
    ./jdk-1_5_0_12-linux-i586.bin
    That's all.
    After launching the jdk installation by means of the latter command, you will be told to "read" the license (you have to move down the text with SPACE) and then accept it by typing "yes".
    Stop. At the end you will have your JDK installed on your PC.

  8. #8
    Just Joined! mlhazan's Avatar
    Join Date
    Jul 2007
    Posts
    53
    Quote Originally Posted by giacomella View Post
    Ok, the first step is done. Now you get two more.
    The first is to choose a location in your filesystem. In the previous post I told you about /usr, /usr/local, etc, but I think you should better choose /home/yourusername.
    So
    be sure to locate your BASH prompt to /home/yourusername/Desktop
    (usually, when you open a new shell your prompt is placed into your home dir, so you only need to
    Code:
    cd Desktop/
    )
    and just type
    Code:
    mv jdk-1_5_0_12-linux-i586.bin ../
    to move the installer to the installation directory.

    The second step is the one I told you last time:
    go back to your home dir (cd ../) and type
    Code:
    ./jdk-1_5_0_12-linux-i586.bin
    That's all.
    After launching the jdk installation by means of the latter command, you will be told to "read" the license (you have to move down the text with SPACE) and then accept it by typing "yes".
    Stop. At the end you will have your JDK installed on your PC.

    Here what i did,according to your help:
    debian:/home/mlhasan# cd Desktop/
    debian:/home/mlhasan/Desktop# mv jdk-1_5_0_12-linux-i586.bin ../
    debian:/home/mlhasan/Desktop# cd ..
    debian:/home/mlhasan# ./jdk-1_5_0_12-linux-i586.bin
    bash: ./jdk-1_5_0_12-linux-i586.bin: Permission denied
    debian:/home/mlhasan#


    Now I am confused.What can I do?Help me my boss.

  9. #9
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    hi
    The run right isn't permitted on the bin files usually, so you need grant it.

    Code:
    chmod 755 jdk-1_5_0_12-linux-i586.bin
    now you can install it

    one more thing
    you need add the jdk to the path variable
    if you install the jdk to your home dir do this

    Code:
    export PATH=$PATH:"/home/yourusername/jdk-1_5_0_12/bin"
    add that line to your .bashrc file for automate the process

  10. #10
    Just Joined! giacomella's Avatar
    Join Date
    Jul 2007
    Location
    Bologna, Italy
    Posts
    10
    Hi iwanabeguru!
    What you say is correct, but I'm afraid mlhazan hasn't the ownership of the file, so he needs a step more.

    mlhazan, in your home directory please type
    Code:
    ls -l jdk*
    and look at the outcoming message:
    if you find something like this
    Code:
    -rw-r--r--    1 mlhazan users       49622107 2007-07-27 01:32 jdk-1_5_0_12-linux-i586.bin
    then do what iwanabeguru said.
    Else, if you get a message like this
    Code:
    -rw-r--r--    1 root root       49622107 2007-07-27 01:32 jdk-1_5_0_12-linux-i586.bin
    you have just one more operation to do before the two iwanaeguru told you:
    Code:
    sudo chown mlhazan:users jdk-1_5_0_12-linux-i586.bin

Page 1 of 2 1 2 LastLast

Posting Permissions

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