Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 36215 invoked from network); 10 Mar 2005 19:17:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Mar 2005 19:17:39 -0000 Received: (qmail 34976 invoked by uid 500); 10 Mar 2005 19:17:31 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 34881 invoked by uid 500); 10 Mar 2005 19:17:31 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 34835 invoked by uid 99); 10 Mar 2005 19:17:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from usea-naimss2.unisys.com (HELO usea-naimss2.unisys.com) (192.61.61.104) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 10 Mar 2005 11:17:28 -0800 Received: from usea-nagw3.na.uis.unisys.com ([129.224.72.20]unverified) by usea-naimss2 with InterScan Messaging Security Suite; Thu, 10 Mar 2005 13:17:05 -0600 Received: from usea-nagw3.na.uis.unisys.com ([129.224.72.55]) by usea-nagw3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 10 Mar 2005 13:17:26 -0600 Received: from usmv-exch1.na.uis.unisys.com ([192.59.173.13]) by usea-nagw3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 10 Mar 2005 13:17:26 -0600 Received: from USMV-EXCH2.na.uis.unisys.com ([192.59.170.76]) by usmv-exch1.na.uis.unisys.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 10 Mar 2005 11:17:24 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: IllegalAccessException Date: Thu, 10 Mar 2005 11:17:23 -0800 Message-ID: <5EC798C30618D948BEA27E69B9FDD536CB92EB@USMV-EXCH2.na.uis.unisys.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: IllegalAccessException Thread-Index: AcUlPwfuF/Yojm49RvCYaNpjZd4qpwAPDJNAAANY/tAAAyst8A== From: "Payette, Don J" To: "Ant Users List" X-OriginalArrivalTime: 10 Mar 2005 19:17:24.0393 (UTC) FILETIME=[CA4EF190:01C525A5] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks, Keith. I've rebuilt it using exec, and now I get this: - % #1: (DONP)LIST/STDERR ON SYSTEM (Records: 1-6 of 6) =20 BUILD FAILED =20 /-/JAVATEST2/DIR/DONP/SPEC/build.xml:407: Class org.apache.tools.ant.types.Comma ndline$Argument doesn't support the nested "arg" ele ment =20 ----- End of (DONP)LIST/STDERR ON SYSTEM ----- =20 =20 And my build.xml has this: =20 Does anyone know what this is all about? Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -----Original Message----- From: Keith Hatton [mailto:khatton@axiomsystems.com]=20 Sent: Thursday, March 10, 2005 9:50 AM To: Ant Users List Subject: RE: IllegalAccessException , though it might not work if your OS is particularly obscure. >> Remember, I'm new to ant. Remember, There's a Fine Manual. http://ant.apache.org/manual/index.html -----Original Message----- From: Payette, Don J [mailto:Don.Payette@unisys.com]=20 Sent: 10 March 2005 15:44 To: Ant Users List Subject: RE: IllegalAccessException Yes, the class is public. Could it be that main is static? =20 This class is normally run from the command line, ala: c:>javaw.exe -cp -DJAVA_HOME=3DC:\Java org.spec.jappserver.load.LoadCorp 10");=20 Then the "main" argv parameter will have "10". The build.xml does the following: However, on my system, the call fails because it can't find java. On our mainframe, java HAS to be run as a command line, it can't be done just as a class call. So I changed it to fork=3D"false" so it uses the JVM that ant is running under. Now I'm getting the current problem. Apparently I need to do something like the following. Remember, I'm new to ant. :-) Is there an ant action such as the one I invented above - runExe? For the line , should I just do -DDomain=3DOrds? As an aside, does XML have a way to split wide quoted strings onto two or more lines? Maybe something like TIA, Don Payette >THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -----Original Message----- From: Stefan Bodewig [mailto:bodewig@apache.org]=20 Sent: Thursday, March 10, 2005 1:02 AM To: user@ant.apache.org Subject: Re: NoClassDefFoundError On Wed, 9 Mar 2005, Don J. Payette wrote: > This is an interesting one (at least to me). Ant is attempting to=20 > call LoadCorp (as can be seen from my stdout). It gets an=20 > IllegalAccessException. Inside LoadCorp is a "main" that looks like > this: >=20 > public static void main(String [] argv) throws Exception { >=20 > What is ant's problem? Is the class itself public? Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org