Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » cant create new driver definition for derby.jar
cant create new driver definition for derby.jar [message #591756] Tue, 08 July 2008 00:25
Adam Posner is currently offline Adam Posner
Messages: 8
Registered: July 2009
Junior Member
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.connectivit y.apache.derby_1.0.1.v200805152355.jar
/home/cuco/eclipse/plugins/org.eclipse.datatools.connectivit y.apache.derby.dbdefinition_1.0.0.v200805152355.jar
/home/cuco/eclipse/plugins/org.eclipse.datatools.modelbase.d erby_1.0.0.v200805152355.jar
/home/cuco/eclipse/plugins/org.eclipse.datatools.connectivit y.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/arti cle.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-Ecl ipseDbWebapps/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
Previous Topic:Ping Failed on the Data Source Properties page
Next Topic:did DTP updated to ganymede?
Goto Forum:
  


Current Time: Wed Oct 01 04:05:53 GMT 2014

Powered by FUDForum. Page generated in 0.06405 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software