|
 |
Documentation
Kattare is dedicated to making your hosting experience as painless as possible. That means making as much help and documentation available as possible.
|
|
| Category |
| JSP-Java Servlets |
|
Question
|
Last Modified: Mar 08, 2007
|
| How can I set my shell environment to be under JDK 1.5. |
| Answer |
Edit (or create) in your home directory .bash_profile and copy and paste the following into it.
export CATALINA_HOME=/usr/local/jakarta-tomcat-5.5
export TOMCAT_HOME=/usr/local/jakarta-tomcat-5.5
export JAVA_HOME=/usr/local/jdk1.5
unset CLASSPATH
for i in ${JAVA_HOME}/lib/*.jar ; do
if [ "$CLASSPATH" != "" ]; then
CLASSPATH=${CLASSPATH}:$i
else
CLASSPATH=$i
fi
done
for i in ${TOMCAT_HOME}/lib/*.jar ; do
if [ "$CLASSPATH" != "" ]; then
CLASSPATH=${CLASSPATH}:$i
else
CLASSPATH=$i
fi
done
export CLASSPATH=/usr/local/jdk1.5/lib:${CLASSPATH}
export PATH=$JAVA_HOME/bin:$PATH
|
[FAQ Main]
[Submit a Question]
[Back to Category "JSP-Java Servlets"]
|
|
 |