Set an environment variable JAVA_HOME?

Set an environment variable JAVA_HOME?

Post by gman » Thu, 10 Jan 2002 09:46:56



I am trying to run tomcat 4.0.1....  The instructions say to:

* Set an environment variable JAVA_HOME to the pathname of the directory
  into which you installed the JDK release.

what is the correct way to do this?  when I run start.sh in /tomcat/bin it
keeps telling me I don't have JAVA_HOME set....

Thanks in advance

 
 
 

Set an environment variable JAVA_HOME?

Post by Christopher Brown » Thu, 10 Jan 2002 13:52:33



> I am trying to run tomcat 4.0.1....  The instructions say to:

> * Set an environment variable JAVA_HOME to the pathname of the directory
>   into which you installed the JDK release.

> what is the correct way to do this?  when I run start.sh in /tomcat/bin it
> keeps telling me I don't have JAVA_HOME set....

Depending on your shell, you might run the command:

  export JAVA_HOME=/tomcat/bin

(replace /tomcat/bin with whereever the JDK release actually is; we
can't tell you where you installed JDK)

or (if you use tcsh as your shell)
  setenv JAVA_HOME /tomcat/bin

If you want to have this set every time you log in, you should figure
out what shell you're running:

  echo $SHELL

If it's /bin/tcsh or /usr/bin/tcsh or similar, add the "setenv" line
to ~/.cshrc or ~/.tcshrc, depending on which is already present.

- If you're running zsh, add the "export" line to ~/.zshrc

- If you're running Korn Shell (ksh), add the "export" line to
  ~/.kshrc

- If you're running Bash (bash), the obvious file would be .bashrc

- Consult documentation for other shells, if you prefer something
  else...
--

http://www3.sympatico.ca/cbbrowne/sgml.html
LISP car-and-cdr worlds are a more reasonable representation of the things
that make life interesting than fixed decimal(15) or FILE OLDMSTR RECORD IS
PAYROLL.
-- Bernie Greenberg.