LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   java install issues (https://www.linuxquestions.org/questions/linux-software-2/java-install-issues-327989/)

scrag1979 05-28-2005 11:21 AM

java install issues
 
Hello i recently decided to switch from xp over to the latest mandrake and im wanting to install a bit torrent client however it needs java. i have downloaded the java file to my desktop it is an i586.rpm.bin file, however im not sure where to install it too or how to install it at all, any input would be greatly appreciated

megaspaz 05-28-2005 12:27 PM

open up a shell terminal and navigate to your desktop directory.
use this command to extract the *.bin file:
./java_package_name_blah.586.rpm.bin

follow all the instructions and accept the license agreement.

use this command as root (su) to install the extracted rpm.

rpm -ivh java java_package_name_blah.586.rpm

java should now be installed in /usr/java

now you need to set up your path and JAVA_HOME environment variable. i make these global by using pathmunge and editing the /etc/profile file.

for me there's a line in the file that looks like:
pathmunge /usr/X11R6/bin after

after that line, put in these lines:
JAVA_HOME=/usr/java/<java_install_directory>
pathmunge $JAVA_HOME/bin after
export JAVA_HOME

for <java_install_directory> use the install directory name in /usr/java and save the file.
now you should be able to reload these variables by logging out and logging back in. if that doesn't work, rebooting your computer will definately work.

redhatrosh 05-28-2005 01:13 PM

...and if it still doesnt work (just in case....)

http://www.linuxquestions.org/questi...hreadid=312640

read the post put up by me.....

its only the "path" part I am talking and emphasizing upon!


All times are GMT -5. The time now is 05:42 AM.