Hi, I have downloaded, J2sdk from java.sun.com site. There are 2 of them one ends with rpm and the other ends eith bin. In order to install jdk on my linux box, which one should I install and how to install it?(what command should I use to install it) ./jkd(fileName).bin did not work; moreove I also tried the one which ends with rpm too. Thank you in advance Garandi
In order to run the .bin installer, you first need to give the file execution rights: chmod a+x *.bin
I usually use the .bin installer. The other option, the .rpm file, has been packaged in the RPM format which is a package management "standard" some of the Linux distributions use. RPM allows you to keep track of what's installed on your Linux, upgrade individual packages, or uninstall them.
RPM is quite easy to use (just say "rpm -i myfile.rpm" and it'll install, rpm -e myfile" and it'll uninstall) but sometimes you'd like to get more control over where the installed pieces go in your filesystem.
I did the following "rpm -i j2sdk-1_4_2_06-linux-i586.rpm". but don't know where did it install java and how to add it to my path? Thank you in advance Garandi
type "which java" on a commandprompt. It should give you the installation path.
Your path is typically set in .profile in your home directory (or in /etc/profile for global settings if memory serves) though this can be different for different shells.