Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JAVA_HOME and ./startup.sh

Status
Not open for further replies.

csbdeady

Programmer
May 18, 2002
119
GB
Hi

On RedHat Linux 9 I have installed the full Sun enterprise environment in /apps/SUNWappserver , and inside that directory there is a jdk/ directory (nb: this should be 1.4 of the JDK but the directory has not been named as such by the installer).

Anyhow, I then type at a shell prompt (bash):

set JAVA_HOME=/apps/SUNWappserver/jdk
export JAVA_HOME

I then try to run up Jakarta with:

/apps/jakarta-tomcat-4.1.30/bin/startup.sh

and immediately get the error message:

"
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
"

As I've defined the variable as above, I'm at a loss as to what to do next. I searched the Jakarta.apache.org site but could find no information to aid me.

Checking through the book Professional Apache 2.0 from Wrox it appears I have typed in the correct commands.

Any suggestions would be great and I'll buy you an e-beer ;)

-Colin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top