Reputation: 2809
Desired result: A folder named 'examples' in the root of my 'Runnable' JAR.
In Eclipse, when clicking 'Export' > 'Runnable JAR file', there is no option to choose which resources to export into the new JAR. After I execute the operation to create a 'Runnable JAR file', my 'examples' folders sitting in my project root does not appear in the resultant JAR. Is there a way to use Eclipse's 'Export' > 'Runnable Jar' facility, while still having control over the folder structure of the final result? (I'm using Eclipse 3.7/Indigo)
Upvotes: 4
Views: 6217
Reputation: 5064
When you export runnable jar file using eclipse, it only export the compiled classes and the libraries. You can of cause go to project properties -> Java Build Path -> Libraries -> Add Class Folder
. Add the examples folder to the build path and then re-run the export procedure again. The ideal way would probably use the generated build.xml and modify the target to generated the jar file.
Upvotes: 1