|cant create new driver definition for derby.jar [message #46378]
||Tue, 08 July 2008 00:25
Originally posted by: cuco2772.gmail.com|
Hello all. I have Eclipse 3.4 with WTP (I downloaded the all-in-one for
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)
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
/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
in the Package Explorer, so eclipse knows about it.
Here, by the way, is the link for the tutorial I mentioned above:
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
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
Anybody have any ideas what could be wrong ? THanks in advance.
Is it possible that
I need to download an additional plugin found here:
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
|Re: cant create new driver definition for derby.jar [message #46740 is a reply to message #46553]
||Thu, 10 July 2008 15:12
Originally posted by: brianf.sybase.com|
The five plugins with "Apache Derby" in them you mentioned in your initial
post are all for providing Derby functionality within DTP. None of them
directly contributes the Derby "derby.jar"
It sounds however that you have the Derby installation at
So... Try this.
1) Go to the Preferences dialog (Window->Preferences)
2) Drill down to the Driver Definitions preference page (Data
3) Click Add...
4) Select one of the Derby drivers (Derby Embedded JDBC Driver for version
10.0, 10.1, or 10.2 etc.)
5) Go to the Jar List tab.
6) Select the derby.jar file in the list. Click Edit Jar/Zip...
7) Using the file browse dialog, find the derby.jar on your machine
(probably in your /usr/lib/javadb/lib directory)
8) Click OK on the file browse dialog.
9) Verify on the New Driver Definition dialog that you don't have that error
about the jar not being found.
10) Click OK on the New Driver Definition dialog.
11) Then go to create a new Derby connection profile.
Let me know if that helps at all.
Another possibility is to go grab the Apache Derby plug-in wrapper from the
Apache Derby site
( http://archive.apache.org/dist/db/derby/db-derby-10.1.1.0/de rby_core_plugin_10.1.1.zip)
and drop that into your Eclipse installation (/eclipse/plugins or
/eclipse/dropins) and restart your workbench. It should (fingers crossed)
pick up on the fact that the plug-in exists in the Eclipse directories and
create a new derby driver definition for you by default.
"Adam Posner" <email@example.com> wrote in message
>I did try that. Unfortunately, got the same result, though.
> This is turning out to be a perplexing problem.
Powered by FUDForum
. Page generated in 0.02590 seconds