Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Linux Support (https://www.gnutellaforums.com/general-linux-support/)
-   -   Installing Java (https://www.gnutellaforums.com/general-linux-support/21636-installing-java.html)

chunkin August 31st, 2003 06:55 PM

Installing Java
 
ok. ive followed the instructions that were posted to the board.when i echo $PATH i get
/usr/local/bin:/bin:/usr/x11r6/bin:/home/moe/bin
when i echo $JAVA_HOME i get nothing
when i followed the instructions the first time i got a location when i did echo $JAVA_HOME
when i do which java i get
/urs/bin/which: no java in /usr/local/bin:/bin:/usr/x11r6/bin:/home/moe/bin
when i do java -version i get
bash: java: command not found
what do i do
thanx

nDiScReEt September 8th, 2003 12:29 PM

First...

Remove kaffe or jdkgcj from your system if they exist.

Second...

Install the latest java rpm or bin (i.e. j2sdk1.4.1 or whatever is clever).

Third...

The order of creating proper java variable paths should be entered in this order after the PATH variable in .bash_profile or .bashrc:

export JAVA_HOME=/usr/java/j2sdk1.4.1_02
export PATH=$JAVA_HOME/bin:$PATH

Fourth...

A nice typed command:

source ~/.bash_profile

or

source ~/.bashrc

Test...

java -version

which java

HTH

altoine


All times are GMT -7. The time now is 01:27 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.