db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Bradbury <Stan.Bradb...@gmail.com>
Subject Re: IBM J9 Personal Profile 1.1 + OSGi + Derby
Date Wed, 01 Oct 2008 23:40:02 GMT
Paul French wrote:
> Hello All,
> I noticed I derby.jar is an OSGi bundle and so I installed it in my 
> OSGi container (Knopflerfish 2.0.5) running on IBM J9 PP1.1
> I included the required jdbc.jar (JSR169) in the bootpath of the J9 
> jvm. I can install the bundle no problems. When I try and start the 
> bundle I get:
> java.lang.NoClassDefFoundError: java.sql.Driver
> From reading this page on the wiki 
> http://wiki.apache.org/db-derby/JavaMESupport?highlight=(j2me 
> <http://wiki.apache.org/db-derby/JavaMESupport?highlight=%28j2me>)
> I know java.sql.Driver does not exist in JSR169.
> Hence how do I tell the derby bundle not to use java.sql.Driver and 
> use instead javax.sql.DataSource
> Any help would be appreciated.
> Many Thanks
> Paul
Hi Paul -

I'm confused.  Derby should load the driver you tell it to load.  You 
need to use


The example program SimpleMobileApp.java (in the DEMO/PROGRAMS folder) shows you how to set
up a program to run in this environment.

View raw message