如何在 Ubuntu 上的 eclipse 中设置 derby?
这个问题基本上说明了一切。我正在尝试在运行 Ubuntu 9.10 的虚拟机上设置 JavaDB。
我通过包管理器下载并安装了包,我相信这是正确的做法。我还安装了 Eclipse 的数据平台工具。我一直在这里关注本教程: http://www.vogella.de/articles /EclipseDataToolsPlatform/article.html。
我陷入了驱动程序定义步骤。当我从“名称/类型”选项卡中选择驱动程序模板并在“Jar 列表”选项卡中选择 jar 文件时,“确定”按钮永远不会启用。在“新驱动程序定义”对话框的顶部,显示“无法在驱动程序定义指定的文件系统中找到 Jar/zip:derby.jar。”我认为这就是问题所在。任何帮助或更好教程的链接将不胜感激。
The question basically says it all. I'm trying setup up JavaDB on my virtualbox running Ubuntu 9.10.
I have the package downloaded and installed through the package manager, which I believe is the right to go about it. I have also installed the Eclipse's Data Platform Tools. I've been following this tutorial here: http://www.vogella.de/articles/EclipseDataToolsPlatform/article.html.
I'm stuck at the driver definition step. When I select the driver template from the Name/Type tab and the jar file in the Jar List tab, the OK button is never enabled. At the top of the New Driver Definition dialog it says 'Unable to locate Jar/zip in the file system as specified by the driver definition: derby.jar.' I assume this is the problem. Any help or links to a better tutorial would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为我的问题是我忘记了最初安装 derby 作为 eclipse 插件。我应该早点想到这一点,但 Apache 实际上有一个很好的教程,用于安装 derby、将其与 eclipse 集成以及构建示例项目。
链接在这里: http://db.apache.org/derby/integrate/derby_plugin .html。
I think my problem was that I had forgotten to initially install derby as an eclipse plugin. I should have thought of this earlier, but Apache actually has a good tutorial for installing derby, integrating it with eclipse and building a sample project.
The link is here: http://db.apache.org/derby/integrate/derby_plugin.html.
从 Apache 网站下载最新的 Derby 版本 http://db.apache.org/derby/。选择二进制发行版。将文件解压到 Eclipse 安装目录。 zip 文件将解压并在 Eclipse 安装的插件目录下创建一个新的子目录。
来源: http://db.apache.org/derby/integrate/derby_plugin.html #Install
您还可以将文件夹“lib”添加到项目中,然后将 Derby 下载中的 derby.jar 文件复制到此文件夹中。
Derby 教程:http://www.vogella.com/articles/EclipseDataToolsPlatform/article.html< /a>
Download the latest Derby version from the Apache website http://db.apache.org/derby/. Choose the binary distribution. Unzip the file to the Eclipse installation directory. The zip file will unpack to create a new subdirectory under the plugins directory of the Eclipse installation.
Source: http://db.apache.org/derby/integrate/derby_plugin.html#Install
You can also add a folder "lib" to your project then copy the file derby.jar from your Derby download into this folder.
Derby tutorial: http://www.vogella.com/articles/EclipseDataToolsPlatform/article.html