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 ...
- 07-27-2007 #1
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.
- 07-27-2007 #2
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!
- 07-27-2007 #3Linux 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
- 07-28-2007 #4
- 07-28-2007 #5It'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 runpLEASE HELP ME TO INSTALL JDK
That's all. A graphical interface will then ask you to read and accept the licence and will automatically do all the rest.Code:./jdk-1_5_0_12-linux-i586.bin
Good luck!
- 07-29-2007 #6
- 07-29-2007 #7Ok, the first step is done. Now you get two more.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.
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
to move the installer to the installation directory.Code:mv jdk-1_5_0_12-linux-i586.bin ../
The second step is the one I told you last time:
go back to your home dir (cd ../) and type
That's all.Code:./jdk-1_5_0_12-linux-i586.bin
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.
- 07-30-2007 #8
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.
- 07-30-2007 #9Linux User
- Join Date
- Feb 2006
- Posts
- 484
hi
The run right isn't permitted on the bin files usually, so you need grant it.
now you can install itCode:chmod 755 jdk-1_5_0_12-linux-i586.bin
one more thing
you need add the jdk to the path variable
if you install the jdk to your home dir do this
add that line to your .bashrc file for automate the processCode:export PATH=$PATH:"/home/yourusername/jdk-1_5_0_12/bin"
- 07-30-2007 #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
and look at the outcoming message:Code:ls -l jdk*
if you find something like this
then do what iwanabeguru said.Code:-rw-r--r-- 1 mlhazan users 49622107 2007-07-27 01:32 jdk-1_5_0_12-linux-i586.bin
Else, if you get a message like this
you have just one more operation to do before the two iwanaeguru told you:Code:-rw-r--r-- 1 root root 49622107 2007-07-27 01:32 jdk-1_5_0_12-linux-i586.bin
Code:sudo chown mlhazan:users jdk-1_5_0_12-linux-i586.bin


Reply With Quote

