I'm trying to put some needed lib in the classpath in the manifest jar file like this : Class-Path: name1.jar name2.jar name3.jar...etc these jars are outside the main jar.
[RP] I removed the following libraries from the Class-Path line to make sure the layout isn't messed up too much: C:\Documents and Settings\559941\Desktop\ncbv2\lib\poi-scratchpad-3.1-FINAL-20080629.jar C:\Documents and Settings\559941\Desktop\ncbv2\lib\msutil.jar C:\Documents and Settings\559941\Desktop\ncbv2\lib\poi-3.1-FINAL-20080629.jar C:\Documents and Settings\559941\Desktop\ncbv2\lib\msbase.jar C:\Documents and Settings\559941\Desktop\ncbv2\lib\junit-3.8.1.jar C:\Documents and Settings\559941\Desktop\ncbv2\lib\poi-contrib-3.1-FINAL-20080629.jar C:\Documents and Settings\559941\Desktop\ncbv2\lib\mssqlserver.jar
All in all, including trailing spaces, the line contained 687 characters.[/RP] [ August 13, 2008: Message edited by: Rob Prime ]
The Class-Path line is much too long. Lines should not contain more than 70 characters (at least that's how long my Apache Ant makes them). For instance, this is a line from one of my (automatically generated) manifest files:
It cuts the line of at exactly 70 characters, and continues on the next line with an indentation of 1 space.
Paths that contain spaces will not work, since space characters are seen as delimiters. Also, don't use absolute paths; make them relative to the jar file that contains the manifest.
Originally posted by Rob Prime: The Class-Path line is much too long. Lines should not contain more than 70 characters (at least that's how long my Apache Ant makes them). For instance, this is a line from one of my (automatically generated) manifest files:
It cuts the line of at exactly 70 characters, and continues on the next line with an indentation of 1 space.
1) There's no leading space in all the wrapped lines 2) You must break after exactly 70 characters. Otherwise the next line is not going to be treated as a continuation from the previous 3) Read Ulf's comments
Originally posted by Rob Prime: 1) There's no leading space in all the wrapped lines 2) You must break after exactly 70 characters. Otherwise the next line is not going to be treated as a continuation from the previous 3) Read Ulf's comments
Thanks for your reply i found a link on internet will take away this headache in future here it is Sealing your jar i will try it and see the results
It must be exactly 70 character each line, with a leading space for every line different from that with "Class-path:". And don't forget a new line at the end of everything!