On Thursday, 04/03/2003 at 05:17 ZE8, "Steven Yong"
<[EMAIL PROTECTED]> wrote:
> I want to run an application which packaged in a jar named A.jar
(Main-Class
> entry Manifest included).
> This executable A.jar need to use two library JARs (B.jar and C.jar).
>
> In windows 2000, is this the correct�command to run A.jar?
>
> java -jar -cp "B.jar;C.jar" A.jar
The double-quotes might be giving you trouble. I think I'd try:
java -cp B.jar\;C.jar -jar A.jar
...but it's just an educated guess.
> Do I need to include the Class-Path entry in the manifest? If yes, what
is the
> -cp option used for in this case?
With the right Class-Path entry, I don't think you'd need to use -cp at
all.
Adding this entry to A.jar's manifest is worth a try:
Class-Path: B.jar C.jar
HTH.
-blair
---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk