Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Deploying to JAR is missing classpath in MANIFEST.MF

Stuart BrandSep 22 2015 — edited Sep 22 2015

Hi All

Since I have moved to jdeveloper from Netbeans I am having trouble creating executable JAR's, as in java -jar myapp.jar

When deploying to a JAR in Netbeans it creates a MANIFEST.MF which includes something like the following

Class-Path: lib/eclipselink.jar lib/javax.persistence_2.1.0.v201304241

213.jar

it also creates a lib directory which contains the JAR's

Now I am using jDeveloper. When I run the JAR inside jDeveloper it works fine and the command line it uses includes the absolute location of every JAR for the classpath.

If I copy and paste the line into a shell it also works, but this is no good as it is not transferable to other systems as absolute classpaths are not the same...

So what I would like is for jDeveloper to deploy a JAR with an external directory for libs if needed and a MANIFEST.MF that contains the JAR's classpath used in the project

Many thanks

Stuart

This post has been answered by Timo Hahn on Sep 22 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 20 2015
Added on Sep 22 2015
2 comments
1,099 views