I created an app which uses JPA and MySQL. Now I like to create simple desktop application out of it (eg a simple jar would be best). Two questions:
- What’s the easiest way to get a project including all jars it depends on out of eclipse in a simple jar?
- Can I use a database like sqlite or derby which requires no installation (eg can be included in the jar) for JPA?
Create a Java Project, write code, rightclick project, choose Export > Runnable JAR file and finally choose from the Library handling options.
Yes, you can do that. Just include and specify the suitable JDBC driver.