You can, in eclipse 3.4 (I don't know when this was added):

Right click on the project.
Click on Export.
Select Java as the type, then Runnable Jar file.

This will export all the classes and libraries in the project into a single fat jar file.

If your eclipse doesn't have this, you can use the FatJar plugin - install it via the plugin manager.

--Kent

On Feb 15, 2009, at 4:51 PM, ton80 wrote:


Hi Charlie,

I don't have anything like that....guess that is why I could not find it. So I guess I need to get some additional stuff for eclipse....might you know what I need to get to give me this capability? Or is there any other way to
include derby.jar in the application package?
The problem is I am creating this on Linux and installing it on
Windows....so I don't know how it is going to work out...I am assuming it
would be best to have derby embedded.

Thanks,
Mike


Charlie Kelly wrote:

Hi Mike,

File -> New -> Project -> Plugin Development -> Plugin from existing JAR
archives

Hope this helps.

Charlie

ton80 wrote:
Charlie,
Looking all through Eclipse...I do not see where to perform the "create
plugin from existing jar archive".
Can I get another hint?

Thanks,
Mike


Charlie Kelly wrote:

Hi Mike,

Inside Eclipse, use the wizard to "create plugin from existing jar
archive"
and include derby.jar.

Charlie


ton80 wrote:

Hi Forum,

I am newly working with Derby.
I have a small project that uses derby in the embedded mode.
I created everything in Eclipse.
Now I want to package it up so I can install it on a clients machine. I export everything into a jar file. When I run the application from
the
jar file, I get an error message saying the
org.apache.derby.jdbc.EmbeddedDriver is not found.
This tells me it did not get included in the export.

So how do I include it?  Or how should I package this up?

Any and all assistance is greatly appreciated.

Thank you,
Mike










--
View this message in context: 
http://www.nabble.com/Including-Derby-in-an-application-jar-tp22028032p22030009.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.


Reply via email to