ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefán F. Stefánsson <>
Subject Running EmbeddedTomcat through ant doesn't work.
Date Fri, 02 Mar 2001 10:09:38 GMT

I'm trying to run an application through ant.  This application starts
up a webserver (Tomcat) which should serve JSPs and servlets.
Everything works fine when I'm running this application through JBuilder
or from the command line but when I start it up from an ant buildfile I
have problems.

The first time I try to access a JSP page I receive an error that class cannot be found.  This happens in Tomcat when
the JAVA_HOME variable is not set (it can't find the tools.jar file).
This variable is set on my computer but when I start the app up from
within ant things don't work... the app doesn't seem to find the
JAVA_HOME variable.

So my question is:  Is there any way to either get the JAVA_HOME
variable (so I can manually find tools.jar and add it to the classpath
before I start the app through the buildfile) or can I somehow start the
app in a JVM that has access to the system variables?

Kind regards,
	Stefan Freyr

Stefan Freyr Stefansson
Software Developer
deCODE Genetics, Inc.

Phone: (+354) 570 2854
GSM:   (+354) 861 1718
Fax:   (+354) 491 3782
 <<Stefan Stefansson.vcf>> 

View raw message