[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dtp] cant create new driver definition for derby.jar

Hello all. I have Eclipse 3.4 with WTP (I downloaded the all-in-one for Java EE
development). I want to use Apache Derby or something that allows me to connect to a DBMS. From what I could tell, it seems like the DTP already comes with this version of Eclipse. For ex, here is the last few lines of output from when I do 'locate derby': (These are all .jar files, but the names are too long to show the whole thing)


/home/cuco/eclipse/plugins/org.eclipse.datatools.sqltools.db.derby_1.0.0.v200805152355.jar
/home/cuco/eclipse/plugins/org.eclipse.datatools.connectivity.apache.derby_1.0.1.v200805152355.jar
/home/cuco/eclipse/plugins/org.eclipse.datatools.connectivity.apache.derby.dbdefinition_1.0.0.v200805152355.jar
/home/cuco/eclipse/plugins/org.eclipse.datatools.modelbase.derby_1.0.0.v200805152355.jar
/home/cuco/eclipse/plugins/org.eclipse.datatools.connectivity.apache.derby.ui_1.0.0.v200805160737.jar

I do also have a regular derby.jar in /usr/lib/javadb/lib

I was trying to follow this tutorial. I created a new project called
DTPDatabaseAccess, created a folder lib in there, and copied my derby.jar from
/usr/lib/javadb/lib/ to /home/cuco/workspace/DTPDatabaseAccess/lib. I did this manually then hit refresh from within eclipse and derby.jar did show up
in the Package Explorer, so eclipse knows about it.


Here, by the way, is the link for the tutorial I mentioned above:

http://www.vogella.de/articles/EclipseDataToolsPlatform/article.html

I get to the section titled 'Configuration' and do this:

Define the driver for the derby access. Go to Window-> Preferences and select "Data Management" -> Connectivity -> Driver Definition. Press Add. Select Derby and the version you want to use. Select then the tab jar press Add and select the derby.jar (which contains the driver).

WHen I follow these directions a window comes up saying 'New Driver Definition'
and under that it says 'Specify a Driver Definition and Template Name'.
I select derby.jar, click 'Add Jar/Zip File' and get this error:


Unable to locate JAR/zip in file system as specified by the driver definition: derby.jar.


Anybody have any ideas what could be wrong ? THanks in advance. Is it possible that I need to download an additional plugin found here:

http://www.eclipse.org/articles/article.php?file=Article-EclipseDbWebapps/index.html

This Derby plugin for Eclipse is listed under the 'Prerequisites' section.
Note that these directions are for eclipse 3.3 and I have 3.4.

If it turns out I do need to download this, what directory should it go in ?
THanks