yes $JAVA_HOME is set, both in my /etc/bashrc file, and in my
/etc/tomcat4/conf/tomcat4.conf file.
Dominic
here is a copy of these files
// /etc/tomcat4/conf/tomcat4.conf *****************************
# tomcat /etc/rc.d script example configuration file
# Use with version 1.07 of the scripts or later
# Where your java installation lives
JAVA_HOME=/usr/java/jdk1.3.1_02/
# You can pass some parameters to java
# here if you wish to
#JAVACMD="$JAVA_HOME/bin/java -Xminf0.1 -Xmaxf0.3"
# Where your tomcat installation lives
# That change from previous RPM where TOMCAT_HOME
# used to be /var/tomcat.
# Now /var/tomcat will be the base for webapps only
CATALINA_HOME="/var/tomcat4"
JASPER_HOME="/var/tomcat4"
CLASSPATH=/var/tomcat4/webapps/ROOT/WEB-INF/lib/autonomyJNI.jar
# What user should run tomcat
TOMCAT_USER="tomcat4"
# You can change your tomcat locale here
#LANG=en_US
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# Just do not forget to export them :)
LD_LIBRARY_PATH=/var/tomcat4/libso
//***********************************************
//****************************************************
# /etc/bashrc
# System wide functions and aliases
# Environment stuff goes in /etc/profile
CLASSPATH=/var/tomcat4/webapps/ROOT/WEB-INF/lib/autonomyJNI.jar
JAVA_HOME=/usr/java/jdk1.3.1_02
JAKARTA_HOME=/var/tomcat4
TOMCAT_HOME=/var/tomcat4
LD_LIBRARY_PATH=/var/tomcat4/libso
PATH=$PATH:$JAVA_HOME/bin:$TOMCAT_HOME/bin
THREADS_FLAG=native
export CLASSPATH THREADS_FLAG JAVA_HOME JAKARTA_HOME TOMCAT_HOME
LD_LIBRARY_PATH PATH
# by default, we want this to get set.
# Even for non-interactive, non-login shells.
if [ `id -gn` = `id -un` -a `id -u` -gt 99 ]; then
umask 002
else
umask 022
fi
# are we an interactive shell?
if [ "$PS1" ]; then
if [ -x /usr/bin/tput ]; then
if [ "x`tput kbs`" != "x" ]; then # We can't do this with "dumb"
terminal
stty erase `tput kbs`
elif [ -x /usr/bin/wc ]; then
if [ "`tput kbs|wc -c `" -gt 0 ]; then # We can't do this with
"dumb" terminal
stty erase `tput kbs`
fi
fi
fi
case $TERM in
xterm*)
if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
else
PROMPT_COMMAND='echo -ne
"\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
fi
;;
*)
[ -e /etc/sysconfig/bash-prompt-default ] &&
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-default
;;
esac
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
if [ "x$SHLVL" != "x1" ]; then # We're not a login shell
for i in /etc/profile.d/*.sh; do
if [ -x $i ]; then
. $i
fi
done
fi
fi
# vim:ts=4:sw=4
PS1='\u@\W[230]> '
// ********************************************************
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 14:35
To: [EMAIL PROTECTED]
Subject: RE: environmental variables
have you set JAVA_HOME ?
-----Original Message-----
From: Dominic Clay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 7:49 AM
To: Tomcat-User (E-mail)
Subject: environmental variables
Hi,
Can anyone tell me how can I write a debugging page to see what the values
in my environmental variables (CLASSPATH, TOMCAT_HOME etc) are according to
Tomcat4.
I have been getting an error saying:
java.lang.UnsatisfiedLinkError: no XXXXXXXX in java.library.path
This occurs as soon as I reference a class in a specific JAR file (other
JARs and classes are fine...) This class is from a third party and is
associated with a .so file which is referenced via the LD_LIBRARY_PATH
variable.
I think this must be to do with either:
1. the .jar file that the referenced class is contained in. (which is in the
/<webapp>/WEB-INF/lib directory *and* in the classpath!).
2. the .so file that is referenced by an LD_LIBRARY_PATH variable.
3. something else!!!
If I create a java class instead of the jsp page and run it from a location
contained within the CLASSPATH, the code works... Its only when I run it as
a jsp page I get the error.
Anyone point me in the right direction.... Please!
Cheers,
Dominic
The information contained in this e-mail and any files transmitted with it
may be privileged and confidential. If the reader of this message,
regardless of the address or routing, is not an intended recipient, you are
hereby notified that you have received this transmittal in error and any
review, use, distribution, dissemination or copying is strictly prohibited.
If you have received this message in error, please delete this e-mail and
all files transmitted with it from your system and notify the sender by
reply e-mail or by calling 1-888-338-6076.
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>