You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Dan Petrula <dp...@adelphia.net> on 2005/12/15 03:04:14 UTC

EMBEDDEDACTIVATOR

I am new to the mailing list and fairly new to Derby. So forgive me if this question has already been asked.

I am trying to compile java code into native code using Derby 10.1.2.1 as an embedded database. I am currently running
JDK 1.5.0_01 and using a third party native code compiler - Excelsior.  The compiler gives me an import dependency error on two classes
in derby.jar - EmbeddedActivator.class and XML.class.  It is the EmbeddedActivator.class that I need to compile.  EmbeddedActivator is found
in  'org.apache.derby.osgi'  and imports two other classes  'org.osgi.framework.BundleActivator' and 'org.osgi.framework.Bundlecontext'.
The compiler reports an error because these two classes are not found in derby.jar. Where can these classes be found?

Dan


Re: EMBEDDEDACTIVATOR

Posted by Daniel John Debrunner <dj...@debrunners.com>.
Dan Petrula wrote:
> Thank you for taking the time to respond to my question.
> osgi.core.jar contained the classes that were missing, however, although
> the program compiled, the exe file created did not work properly.  I
> guess I will just wait until derby is supported under JDK 5.  

So Derby is supported under JDK 5 when using a JVM, but you are moving
into the unknown by trying to compile Derby to a native exe. Derby
generates classes on the fly for each SQL statement, so at least the
native exe has to support that.

Dan.



Re: EMBEDDEDACTIVATOR

Posted by Dan Petrula <dp...@adelphia.net>.
Thank you for taking the time to respond to my question.
osgi.core.jar contained the classes that were missing, however, although the program compiled, the exe file created did not work properly.  I guess I will just wait until derby is supported under JDK 5.  I can buy an embedded database from MYSQL, but they want royalities for every copy sold and will cut into my profit margins.  I
will probably have to go that route.  I am not a database developer.  I just want one that works and will not cost me too much.

Dan
  ----- Original Message ----- 
  From: Myrna van Lunteren 
  To: derby-dev@db.apache.org 
  Sent: Wednesday, December 14, 2005 6:38 PM
  Subject: Re: EMBEDDEDACTIVATOR


  Hi,

  I don't understand that you'd need to build EmbeddedActivator to embed Derby, but if you go to the Downloads tab off the main derby page, you'll see a list of jar files required to build derby.
  http://db.apache.org/derby/derby_downloads.html#Software+required+to+build+Derby
  It has a link to osgi.jar

  Hope this helps.
  Myrna

  On 12/14/05, Dan Petrula <dp...@adelphia.net> wrote: 
    I am new to the mailing list and fairly new to Derby. So forgive me if this question has already been asked.

    I am trying to compile java code into native code using Derby 10.1.2.1 as an embedded database. I am currently running 
    JDK 1.5.0_01 and using a third party native code compiler - Excelsior.  The compiler gives me an import dependency error on two classes
    in derby.jar - EmbeddedActivator.class and XML.class.  It is the EmbeddedActivator.class that I need to compile.  EmbeddedActivator is found
    in  'org.apache.derby.osgi'  and imports two other classes  'org.osgi.framework.BundleActivator' and 'org.osgi.framework.Bundlecontext'.
    The compiler reports an error because these two classes are not found in derby.jar. Where can these classes be found?

    Dan




Re: EMBEDDEDACTIVATOR

Posted by Myrna van Lunteren <m....@gmail.com>.
Hi,

I don't understand that you'd need to build EmbeddedActivator to embed
Derby, but if you go to the Downloads tab off the main derby page, you'll
see a list of jar files required to build derby.
http://db.apache.org/derby/derby_downloads.html#Software+required+to+build+Derby
It has a link to osgi.jar

Hope this helps.
Myrna

On 12/14/05, Dan Petrula <dp...@adelphia.net> wrote:
>
> I am new to the mailing list and fairly new to Derby. So forgive me if
> this question has already been asked.
>
> I am trying to compile java code into native code using Derby 10.1.2.1 as
> an embedded database. I am currently running
> JDK 1.5.0_01 and using a third party native code compiler - Excelsior.
> The compiler gives me an import dependency error on two classes
> in derby.jar - EmbeddedActivator.class and XML.class.  It is the
> EmbeddedActivator.class that I need to compile.  EmbeddedActivator is
> found
> in  'org.apache.derby.osgi'  and imports two other classes  '
> org.osgi.framework.BundleActivator' and 'org.osgi.framework.Bundlecontext
> '.
> The compiler reports an error because these two classes are not found in
> derby.jar. Where can these classes be found?
>
> Dan
>
>
>