Peter Johnson wrote:Try this: File | Export | Java | Runnable JAR file, then specify your "main" class and make sure "Extract required libraries into generated JAR" is checked.
Ajeeth Kumar wrote:Look for options to include all the files under the source folder. ( I believe your properties files is inside the src folder, else you can use ant scripts to create the jar file and make the necessary tweaks to create jar with property file).
Ajeeth Kumar wrote:Any folder outside the src folder is not available in the classpath, so it would be missed. You can try to add the folder in the classpath entries by clicking on Run configurations->Classpath-> Advanced options.
Do let me know if this works or not.![]()
Ajeeth Kumar wrote:Glad that I could be of some help
![]()
Now coming to your current issue, If I got it right, you would not be able to port a DB inside a jar file a la some text file. You would have to include the required JARs within your custom jar and then create the DB whenever your application runs in the system.
Ajeeth Kumar wrote:Sorry Sarah, I have never tried to port a DB along with a JAR.
![]()