From derby-user-return-10529-apmail-db-derby-user-archive=db.apache.org@db.apache.org Mon Feb 16 05:47:42 2009 Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 98434 invoked from network); 16 Feb 2009 05:47:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2009 05:47:42 -0000 Received: (qmail 7986 invoked by uid 500); 16 Feb 2009 05:47:41 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 7955 invoked by uid 500); 16 Feb 2009 05:47:41 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 7946 invoked by uid 99); 16 Feb 2009 05:47:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 21:47:41 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.13.152.131] (HELO m1.imap-partners.net) (64.13.152.131) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 05:47:31 +0000 Received: from [192.168.0.100] (c-24-21-96-139.hsd1.or.comcast.net [24.21.96.139]) by m1.imap-partners.net (MOS 3.10.3-GA) with ESMTP id BJE36237 (AUTH kent@iotabits.com) for derby-user@db.apache.org; Sun, 15 Feb 2009 21:47:08 -0800 (PST) Message-Id: From: Kent Spaulding To: "Derby Discussion" In-Reply-To: <22030148.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: Re: Including Derby in an application jar Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sun, 15 Feb 2009 21:47:07 -0800 References: <22028032.post@talk.nabble.com> <49989C23.8080209@CharlieKelly.com> <22028979.post@talk.nabble.com> <4998AA53.6050707@CharlieKelly.com> <22030009.post@talk.nabble.com> <39D72152-115E-4A9D-8CF9-779CC4C23C78@iotabits.com> <22030148.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org It should work on Windows, yes, assuming that a Java Runtime (JRE) or Java Development Kit has been installed on the machine. --Kent On Feb 15, 2009, at 5:08 PM, ton80 wrote: > > Kent, > > Too easy. That did the trick. Now should that work on Windows > machine as > is? > > Thanks, > Mike > > > > Kent Spaulding-2 wrote: >> >> 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. >>> >> >> >> > > -- > View this message in context: http://www.nabble.com/Including-Derby-in-an-application-jar-tp22028032p22030148.html > Sent from the Apache Derby Users mailing list archive at Nabble.com. >