質問

I have a database-driven application (Apache Derby). I connect to the database by a URL:

jdbc:derby://localhost:1527/kcal_calc_db

My database was created via NetBeans, and is in the '.netbeans-derby' folder. How can I include this database with my JAR/EXE file?

役に立ちましたか?

解決

Try this related question: Distribute a database made with JavaDB with Java program

Note that you'll want your database to be accessed as an Embedded database, not a Client-Server database, so you'll need to change your Connection URL, use the Embedded JDBC driver, package derby.jar into your application, etc.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top