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
[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
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
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">
>
>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
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
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
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
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
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
10 matches
Mail list logo