Hello
How do I set the JAVA_HOME environment variable
I am using a virtual Free BSD server, which means that I don't have root access, only telnet/SSH access.
The hosting company installed JDK1.4 (upgrade from 1.1.18)
..now I need tomcat installed.
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/bin/jakarta-tomcat-4.1.24.tar.gzI installed as per these direction:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txtWhen I run Tomcat I receive this error
prompt% pwd
/usr/local/jakarta-tomcat-
4.1.24/bin
prompt% startup.sh
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
prompt%
if this helps
prompt% echo $shell
/usr/local/bin/tcsh
prompt%
I thought I might need to change something in my .cshrc file, but I am not sure. This is going further then I know.
here is a copy of the current .cshrc file. Changes were made in here for the JDK, and PostgrSQL
**************************
****
set path= (~/usr/local/jakarta-tomca
t-4.1.24/b
in ~/usr/local/j2re1.4.1_02
/usr/local/j2re1.4.1_02/bi
n /bin /usr/bin /usr/local/bin ~/bin ~/usr/bin ~/usr/local/bin)
if (! $?prompt) exit
set history = 100
set prompt = "`hostname -s`% "
unalias *
alias h history
alias ll ls -l
alias la ls -la
alias www cd www/htdocs/
setenv BLOCKSIZE 1k
setenv EDITOR vi
setenv PAGER more
umask 022
if (! $?term) set term = vt100
stty echoe erase ^H kill ^U intr ^C quit ^\| susp ^Z
setenv PORTSDIR "$HOME/usr/ports"
setenv PREVIX "$HOME/usr/local"
setenv PGDATA /usr/local/pgsql/data
setenv PGLIB /usr/local/pgsql/lib
setenv LD_LIBRARY_PATH /usr/local/gpsql/lib
set path = (/usr/local/pgsql/bin $path)
**************************
**********
**
Any direction or any help would be great.
if you are wondering why the hosting company does not help, this is not a product that they support.
on another note, is there a way to change my prompt to show my path??
Thanks
David
Start Free Trial