How do I add classpath to the usable jjj .jj file exported using eclipse?

advertisements

so my projects have a lot of classpath variables set in the run configuration -> classpath tab in eclipse...

but once I exported the project as a runnable java jar file, none of these classpaths are exported to the jar's manifest file despite having specified this run configuration during the export dialogue....

how do I get eclipse to add these classpath variables to the exported jar's manifest?

besides doing everything manually of course...


You can create your own manifest file and ask eclipse to use it in the "Export->Jar" wizard.

You can also try "Export -> Runnable Jar" in the latest versions of eclipse. I have not tried it, this generally is supposed to include the referenced libraries, so it might include the classpath variables as well.