You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Stefán F. Stefánsson" <st...@snote.decode.is> on 2001/03/02 11:09:38 UTC

Running EmbeddedTomcat through ant doesn't work.

Hello.

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
sun.tools.javac.Main 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.
http://www.decode.com

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