java - JPA and database in a single jar -


I created an app using JPA and MySQL. Now I want to create a simple desktop application out of it (like a Simple jar would be best). Two questions:

  • The easiest way to get the project including all jars depends on the eclipse in a simple jar?
  • Can I use a database to either Secure or Derby for an installation (can be included in the jar) for JPA?
    • The easiest way to get projects including all jars depends on the outside of eclipse in a simple jar?

    Create a Java project, type code, rightclick project, select export> runnable jar file and finally library handling Choose from options.

    alt text

    • Do I need any installation (can be included in the jar) for Java database like SQL database or derby?

    Yes, you can do this simply include in the bus and specify the appropriate JDBC driver.


Comments