How to set up derby in eclipse on Ubuntu?
The question basically says everything. I am trying to setup JavaDB on my virtualbox running Ubuntu 9.10.
I have a package downloaded and installed via the package manager which I believe is right for this. I also installed the Eclipse Data Platform Tools. I read this tutorial here: http://www.vogella.de/articles/EclipseDataToolsPlatform/article.html .
I am stuck at the driver definition step. When I select a driver template in the Name / Type tab and a jar file in the Jar List tab, the OK button never turns on. At the top of the New Driver Definition dialog box it says, "Unable to find Jar / zip in filesystem as specified in driver definition: derby.jar." I guess this is the problem. Any help or links to a better tutorial would be much appreciated.
a source to share
I think my problem was that I forgot to install derby as an eclipse plugin first. I should have thought of this before, but Apache does have a good tutorial on how to install derby, integrate it with eclipse, and create a sample project.
The link is here: http://db.apache.org/derby/integrate/derby_plugin.html .
a source to share
-
Download the latest version of Derby from the Apache website http://db.apache.org/derby/ . Choose a binary distribution. Unzip the file to your Eclipse installation directory. The zip file will be unpacked to create a new subdirectory in the plugins directory of your Eclipse installation.
Source: http://db.apache.org/derby/integrate/derby_plugin.html#Install -
You can also add a "lib" folder to your project and then copy the derby.jar file from your Derby file to that folder.
Derby Tutorial: http://www.vogella.com/articles/EclipseDataToolsPlatform/article.html
a source to share