Dave Filchak wrote:
In trying to troubleshoot my ongoing issues with deploying a Tomcat app, I have been trying to track down any duplicate java/tomcat installs. I made some changes I thought would work and now when I issue the command:

which java, I get:

/usr/bin/which: no java in (/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin)


So my next questions are going to be dumb I am sure but please bear with me as I try to learn this stuff:

Here is my environment:

Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:       /usr/opt/jdk1.6.0_13
Server version: Apache Tomcat/6.0.18
Server built:   Jul 22 2008 02:00:36
Server number:  6.0.18.0
OS Name:        Linux
OS Version:     2.6.9-34.ELsmp
Architecture:   amd64
JVM Version:    1.6.0_13-b03
JVM Vendor:     Sun Microsystems Inc.

My $PATH is: /opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin

But I get the error when I run which java.

I guess what I am asking is if the jdk I have installed the only java install I need and if so, why does which not find java at all?

I don't know, but the more you tell us, the more I believe that this is one screwed-up system.. ;-)

Try these 3 commands :

id

echo $PATH

and

find / -name java

and let us see the output

and then, just by curiosity, do

ls -l /opt/java/bin/java

and let us see that too

and, just for fun, try

java -version

and ditto


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to