Eclipse和德比 [英] Eclipse and derby

查看:62
本文介绍了Eclipse和德比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经根据本指南安装了derby在ij控制台中创建数据库。如何从eclipse使用此数据库?
我已经下载了db-derby-10.10.1.1-bin,那里没有任何罐子。

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.

推荐答案

安装derby之后。
日食。
创建一个Java项目。写下任何jdbc示例程序。

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

假设您要运行基于客户端-服务器的连接,并且如果不遵循此链接
使用以下命令启动derby网络服务器

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

在eclipse项目文件中,右键单击它,然后转到properties-> Java Build Path- >库
单击添加外部JAR。现在浏览到derby安装目录和lib文件夹,然后选择以下jar文件
1. derby.jar 2. derbyclient.jar 3. derbynet.jar 4. derbytools.jar 5. derbyrun.jar

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

现在,您的Java程序将能够访问您创建的derby数据库。

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.

这篇关于Eclipse和德比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆