
Signature
Fahd Shariff
"Let the code do the talking... "
Ignore my previous email. I got it wrong.
You cannot have both -classpath and -jar as path of the java command.
"When you use -jar, the JAR file is the source of all user classes, and
other user class path settings are ignored." This is why it cant find
the JarMan class because the jarman jar file is being ignored.
What you need to do is add the Class-Path attribute to the manifest:
Class-Path: jarman.jar

Signature
Fahd Shariff
"Let the code do the talking... "
arvindsd@yahoo.com - 01 Jun 2005 08:44 GMT
Hi Fahd,
Thanks for the input.
Now my manifest file looks like below:
Manifest-Version: 1.0
Created-By: 1.4.2_04 (Sun Microsystems Inc.)
Main-Class: a.b.JarTest
Class-Path: c:\test\jarman.jar
But I still get some error:
C:\test>java -jar a.jar
Failed to load Main-Class manifest attribute from
a.jar
regards,
ASD