DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Eclipse RCP + Apache Derby jdbc driver
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default Eclipse RCP + Apache Derby jdbc driver - 05-11-2008, 12:56 PM

Hi all.

I'm developing an RCP application, in which persistency of data should be achieved through Apache Derby Embedded.

I'm having problems in configuring my runtime to access to DB.

I tried two ways:

1) Adding "apache.derby.core" plugin to dependencies.
I read that this is the proper way to do it but, as I launch my application ("Launch an eclipse application" from "Overview" Menu) I have an error, which seems to be generated by this:


!MESSAGE Missing required bundle org.apache.derby.core_0.0.0.


2) Adding "Apache Derby library" to Build Path.
In this case, the application is launched and works good up to when I try to do my first access to db... in fact, as I do


Class.forName("org.apache.derby.jdbc.EmbeddedDrive r")


a ClassNotFoundException is thrown, even if the class should be visible...


Can anyone help me in finding the right way to accomplish what I'm looking for?
Thanks in advance!!
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default 05-19-2008, 07:17 AM

You should add the the follwing jar file in class path "derby.jar" and "derbtools.jar"
and then you should try this
try {
String driver = “org.apache.derby.jdbc.EmbeddedDriver”;
Class.forName(driver).newInstance();
Connection conn = null;
conn = DriverManager.getConnection(“jdbc:derbyerbyTestD B”);
}


I hope this piece of code will work fine. Best of luck
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default Registring Plug-in Editor in an RCP application - 05-26-2008, 02:23 PM

Hello,
I have created an editor with all its view and so on.
And i exported it as a plug-in

I want to integrated this edito and load it in a new RCP application ?
How to do that please ?
Reply With Quote
  (#4 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default 05-26-2008, 11:50 PM

You can create a new feature project, and in that feature you can add any your required plugin.
Best of luck
Reply With Quote
  (#5 (permalink)) Old
Member
 
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default 05-27-2008, 09:04 AM

Quote:
Originally Posted by sajjadalikhan1 View Post
You can create a new feature project, and in that feature you can add any your required plugin.
Best of luck

Thanks for the answer,
Can you help me how to do that more explicitely, with a web link or a Tutorial
Thx a lot my friend!
Best regard!
Reply With Quote
  (#6 (permalink)) Old
Member
 
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2008
Default 05-27-2008, 09:14 AM

Quote:
Originally Posted by sajjadalikhan1 View Post
You can create a new feature project, and in that feature you can add any your required plugin.
Best of luck
Yes!
I have added the plug-ins in the feaure plugins project,
But i still not know how to use plug-ing

Can you help me please, it is an urgent case
Reply With Quote
Reply

Tags
classnotfoundexception, derby, jdbc, no suitable driver, rcp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
org.apache.jasper.JasperException: Unable to compile class for JSP: swasthik Eclipse 0 12-31-2008 12:37 AM
FTP private directory problems with org.apache.commons.net.ftp.FTP magaupe Java 1 09-26-2008 07:27 AM
Creating .jar file for a jdbc application krishnaprasad_it01 Java 0 07-23-2008 06:18 AM
JDBC not bound in this context walterw Java 2 05-20-2008 06:43 AM
Oracle Driver Problem BarryC Java 1 05-19-2008 09:43 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com