Eclipse and derby

这一生的挚爱 提交于 2019-12-13 04:35:19

问题


I've installed derby according to this guide and created database in it's ij console. How can I use this database from eclipse? I've downloaded db-derby-10.10.1.1-bin there isn't any jars there.


回答1:


After the installation of derby . Fire up eclipse. Create a java project. Write down any jdbc example program.

Assuming that you want to run a client - server based connection and you have setup class path correctly if not follow this link. Start the derby network server using the command

java -jar %DERBY_HOME%\lib\derbyrun.jar server start

In the eclipse project file right click on it and go to properties->Java Build Path->Libraries Click on Add External JARs. Now browse to the derby installation directory and lib folder and select the following jar files 1. derby.jar 2. derbyclient.jar 3. derbynet.jar 4. derbytools.jar 5. derbyrun.jar

Thats it now your java program will be able to access the derby database that you create.

For step by set procedure you can refer to this link.



来源:https://stackoverflow.com/questions/21528840/eclipse-and-derby

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!