Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Delivered-To: moderator for ant-user@jakarta.apache.org Received: (qmail 15133 invoked from network); 2 Mar 2001 22:56:33 -0000 Received: from mx1.decode.is (root@213.167.128.30) by h31.sny.collab.net with SMTP; 2 Mar 2001 22:56:33 -0000 Received: (from root@localhost) by mx1.decode.is (8.9.3/decode) id WAA07963 for ant-user@jakarta.apache.org; Fri, 2 Mar 2001 22:56:08 GMT Received: from smail.decode.is (smail.decode.is [172.18.0.18]) by mx1.decode.is (8.9.3/decode) with ESMTP id WAA07923 for ; Fri, 2 Mar 2001 22:56:07 GMT Subject: Accessing System environment variables. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C0A36C.079C59DE" Date: Fri, 2 Mar 2001 22:56:34 -0000 Message-ID: <56AA4E1C98A43E41A75C8643D4F0B724D3AB@smail.decode.is> X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Running EmbeddedTomcat through ant doesn't work. Thread-Index: AcCjAONHV58+Y6mHShqRPTP5/e95/AAarMGg From: =?iso-8859-1?Q?Stef=E1n_F=2E_Stef=E1nsson?= To: "Ant-User" X-scanner: scanned by Inflex 0.1.5 - (http://www.inflex.co.za/) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C0A36C.079C59DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sorry for the repost but I'm afraid that some people might have been scared off with the subject of the other one (was 'Running EmbeddedTomcat through ant doesn't work'). The basic question is if there is a way to access system variables (like JAVA_HOME) from the ant buildfile. I need to get JAVA_HOME so I can find where 'tools.jar' resides so I can start tomcat. Anyone? My previous post is at the end of this message. Kind regards,=20 Stefan. -----Original Message----- From: Stef=E1n F. Stef=E1nsson=20 Sent: 2. mars 2001 10:10 To: Ant-User Subject: 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 <>=20 ------_=_NextPart_001_01C0A36C.079C59DE Content-Type: text/x-vcard; name="Stefan Stefansson.vcf" Content-Transfer-Encoding: base64 Content-Description: Stefan Stefansson.vcf Content-Disposition: attachment; filename="Stefan Stefansson.vcf" QkVHSU46VkNBUkQNClZFUlNJT046Mi4xDQpOO0VOQ09ESU5HPVFVT1RFRC1QUklOVEFCTEU6Oz0w MQ0KUkVWOjIwMDAxMDMwVDExNTE0MloNCkVORDpWQ0FSRA0K ------_=_NextPart_001_01C0A36C.079C59DE--