Creating jar files for Java applications
I created a Java application that uses the data in its config folder. It also uses a third-party jar file located in the Lib folder. Anyone can tell me how to use the content stored in the configuration file and lib to create a jar folder for the project
I tried to use the eclipse export function to create a jar When I run the jar file, it says it can't find the third-party library I used for the project and configuration file
Thank you in advance for your help
Solution
You can use the existing startup configuration to create runnable jars in eclipse 3.4 in the Export Wizard selection dialog box (right-click the project and go to export...), which will include libraries or repackage them The configuration file should be readable from the directory where the runnable jar is located If you need any help loading these, please:)
alt text http://download.eclipse.org/eclipse/downloads/drops/R-3.5-200906111540/images/runnable-jar-in-jar-export.png