Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 87176 invoked by uid 500); 15 Aug 2001 23:57:47 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 87167 invoked from network); 15 Aug 2001 23:57:47 -0000 Message-ID: <003601c125e6$bf875df0$8b00000a@TariqM> From: "T Master" To: "ant user mailist" Subject: possible to append to system classpath? Date: Wed, 15 Aug 2001 18:02:32 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Given a fileset pattern, is it possible to append a collection of *.jar files to my system classpath for the duration of a build.xml execution? This makes building extremeley portable after copying out files from a source tree. I'm fed up of getting the following error message when trying to run my custom task, where the necessary jar file is in a known destination (and not in the system classpath). I've tried dynamic class loading, which loaded, but then got instanciation errors. I can't run it on the command line using CommandLine as the class cannot be found. Is it preferable to have the necessary jars in the classpath instead of dynamic class loading? Finding class javancss.Javancss java.lang.NoClassDefFoundError: javancss/Javancss at com.buildtools.JavaNcssTask.executeInVm(JavaNcssTask.java:338) at com.buildtools.JavaNcssTask.execute(JavaNcssTask.java:243) at org.apache.tools.ant.Target.execute(Target.java:153) at org.apache.tools.ant.Project.runTarget(Project.java:898) at org.apache.tools.ant.Project.executeTarget(Project.java:536) at org.apache.tools.ant.Project.executeTargets(Project.java:510) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:263) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)