I am having hard time to find out how to define external jar in manifest.mf. When I use class path as shown below jar file does not get executed
Manifest-Version: 1.0
Sealed: true
Main-Class: org.test.MainClass
Class-Path: /Program Files (x86)/Testfolder/testlibrary/hibernate3.jar
/Program Files (x86)/Testfolder/testlibrary/org.springframework.web-3.1.1.RELEASE.jar
When I give proper full class path as shown below, the Main class is not found or loaded
Manifest-Version: 1.0
Sealed: true
Main-Class: org.test.MainClass
Class-Path: D:/Program Files (x86)/Testfolder/testlibrary/hibernate3.jar
D:/Program Files (x86)/Testfolder/testlibrary/org.springframework.web-3.1.1.RELEASE.jar
Does any one have any idea what am I doing wrong?
.zipor.tar.gzfile, and make the paths relative to your main jar file, e.g.../testlibrary/hibernate3.jarhibernate3.jarinto main jar classpath, and just add it as aClass-Path : hibernate3.jarhibernate3.jartwice? Anyway, the main problem you have is that full path includes spaces. Easiest solution is to ensure relative paths don't have spaces, since space is a separator.