ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hal Hildebrand \(web\)" <Hal.Hildebr...@hellblazer.com>
Subject Re: Applying a classpath to a executable jar file
Date Tue, 04 Jun 2002 14:57:17 GMT
"java -jar" will *always* ignore the classpath, even when executed from
the command line.

>>From the "java" application launcher doc:

"When you use this option, the JAR file is the source of all user
classes, and other user class path settings are ignored. "


----- Original Message -----
From: "Ionel Gardais" <Ionel.Gardais@geomath.fr>

> Hi,
>
> i'm trying to run a Java program directly from a .jar file.
>
> The MANIFEST.MF contains the needed tag to run the main class but it
> does'nt find the needed external packages.
>
> I've tried to add a <classpath></classpath> tag inside the java tag
but
> it doesn't work.
> I've also tried to include a Class-Path: tag in the MANIFEST.MF as
> describe by Sun but java complains that the line is too long.
> Finally, I'ce tried to include the needed external jars in my own jar.
>
> It works but the file is now about 6 Mb ! Hard to download with a
56kbps
> modem.
>
> Is there a way to bypass this ?
>
> Thanks for your help,
> ionel
>
>
> --
> To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>
>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message