[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to install jdk1.5?



2006. május 24. 16:26,
Ed <eddythejekyll@gmail.com>
-> debian-user@lists.debian.org,:
> I'm trying to install jdk1.5 on my Sarge system. I ran the  I did a
> search for jdk in Debian space and found very little.
>
> I downloaded the jdk-1_5_0_06-linux-i586.bin file, and ran the
> install. I tried it in both /usr/local and then again in my
> /home/myusername space. In neither case did it install correctly. When
> I try to run javac or anything else (install eclipse) it can't find
> the java install.
>
> Are there no deb files, or can anyone help me to get this file installed?
>
> Thanks,
Hi Ed!

I presume that you are referring to Sun's jdk. In this case if you've 
installed it under /usr/local, then you should have a directory called 
"jdk1.5.0_06" (or similar :).
The problem with your setup is that the binaries aren't in your PATH.
You have a lot of options, and I'm going to write just a few:

- Adjust your path (refer to your shell's documentation in order to make it 
permanent) to contain "/usr/local/jdk1.5.0_06/bin" and 
"/usr/local/jdk1.5.0_06/jre/bin"

- Symlink the executables to a directory which is searched after binaries 
(usually /usr/local/bin). (mixing this with creating a symlink 
under /usr/local/ named java which points to your jdk1.5.0_06 directory, will 
have the advantage of not braking the symlinks of you install a newer version 
of sun's java, you just have to redirect the java symlink)

There are of corse plenty other possibilities which you can adopt...

HTH,

Daniel

-- 
LeVA



Reply to: