[Cialug] JAVA version woes.

Nathan C. Smith smith at ipmvs.com
Wed Dec 7 08:39:05 CST 2005


Unfrozen caveman system administrator says:

Thanks.  I tried to do the link but I didn't put the whole path down to the
executable when I did it.  

JAVA seems to be working from anywhere now.

Thanks much.

-Nate

"I'm just an Unfrozen caveman system administrator, your paths and bins
scare me, your procs startle me."

-----Original Message-----
From: Jerry Heiselman [mailto:jweida at gmail.com] 
Sent: Wednesday, December 07, 2005 8:31 AM
To: Central Iowa Linux Users Group
Subject: Re: [Cialug] JAVA version woes.


you need to add /usr/java/j2sdk1.4.2_09 to your path.

In csh or tsch type: setenv PATH $PATH:/usr/java/j2sdk1.4.2_09/bin
In sh, ksh, or bash type: export PATH=$PATH:/usr/java/j2sdk1.4.2_09/bin

You probably want to add those statements to your .profile or .login file
too. 

The alternative that may work better is to put a link in /usr/bin for java.
To do that type: ln -s /usr/java/j2sdk1.4.2_09/bin/java /usr/bin/java.

If you have a csh-based shell, then you will need to type in: rehash 
once you have done that.


On 12/7/05, Nathan C. Smith <smith at ipmvs.com> wrote:

So I'm trying to install the community edition of Scalix on Centos 4.2.
After I installed Redhat-derived Centos 4.2 (everything) I removed the jcc
or whatever the gcc compatible java stuff is called.  Now if I say: 
whereis java
java: /etc/java /usr/lib/java /usr/share/java

But

java -version
-bash: java: command not found

Hmm.  So Java lives at: /usr/java/j2sdk1.4.2_09

Seems to me I need to get it into the path somehow right?  Can anyone throw 
me a clue on how to proceed so that when I type java -version from anywhere
I get

java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)
Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)

I'm not sure if a path change or a symlink is what I need...

-Nate
_______________________________________________
Cialug mailing list
Cialug at cialug.org 
http://cialug.org/mailman/listinfo/cialug


More information about the Cialug mailing list