Re: Setting classpath when executing jar file

2006-07-09 Thread Ralf Sigmund
This works perfect for the and the tasks. however i still could not find out how I should do the same for the excution of an custom ant task. everything is perfect for the but when I want to actually exceute my own task the classpath defined in the is not used. ralf On 7/7/06, [EMAIL PROTECTE

AW: Setting classpath when executing jar file

2006-07-07 Thread Jan.Materne
[EMAIL PROTECTED] >Gesendet: Freitag, 7. Juli 2006 16:41 >An: Ant Users List >Betreff: Re: Setting classpath when executing jar file > >> >>> classpathref="libraries"> >> >> >> > >The problem is in fact that always

Re: Setting classpath when executing jar file

2006-07-07 Thread Dominique Devienne
The problem is in fact that always ignores any classpath specified, because SUN's java does when using the -jar command line switch. See the JDK Tools documentation (or my answer to the 'unusual' post of the 4th of July...) Use to be able to specify a classpath. --DD

Re: Setting classpath when executing jar file

2006-07-06 Thread chuanjiang lo
Thanks Appreciate your help On 7/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >It seems like i'm not getting the classpath setting correctly >hence there is an error in executing my jar file.. > > > > > > > > >classpathref="libraries"> >

AW: Setting classpath when executing jar file

2006-07-06 Thread Jan.Materne
>It seems like i'm not getting the classpath setting correctly >hence there is an error in executing my jar file.. > > > > > > > > >classpathref="libraries"> > > > > >When trying to execute the jar file, the classes in other jars >is not

Setting classpath when executing jar file

2006-07-06 Thread chuanjiang lo
It seems like i'm not getting the classpath setting correctly hence there is an error in executing my jar file.. ... ... When trying to execute the jar file, the classes in other jars is not found. How to correctly set the classpathref

Re: Classpath when executing JAR

2004-10-12 Thread Ivan Ivanov
Hi, You can use properties when forming Class-Path attribute of your jar like this: where jar1 and jar2 properties holds the names of the jar files you want to include. However, I am forced to suppose that you have already constructed a classpath that holds all your properties called runtime-c

Re: Classpath when executing JAR

2004-10-12 Thread h2ooo x
ank you! From: Conor MacNeill <[EMAIL PROTECTED]> Reply-To: "Ant Users List" <[EMAIL PROTECTED]> To: Ant Users List <[EMAIL PROTECTED]> Subject: Re: Classpath when executing JAR Date: Tue, 12 Oct 2004 16:42:21 +1000 It's the same at the command line. When you run a jar with

Re: Classpath when executing JAR

2004-10-11 Thread Conor MacNeill
It's the same at the command line. When you run a jar with java -jar ... java ignores the classpath. Presumably it expects the jar to specify its classpath. Conor h2ooo x wrote: Hi! I have the following Ant (1.6.2) tasks defined, The task "run" is exec

Classpath when executing JAR

2004-10-11 Thread h2ooo x
Hi! I have the following Ant (1.6.2) tasks defined, The task "run" is executed correct but the task "run2" produced the following error: run2: [java] java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod [java] Exceptio