From derby-user-return-14430-apmail-db-derby-user-archive=db.apache.org@db.apache.org Thu Jun 21 13:14:31 2012 Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46F459763 for ; Thu, 21 Jun 2012 13:14:31 +0000 (UTC) Received: (qmail 8258 invoked by uid 500); 21 Jun 2012 13:14:30 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 8237 invoked by uid 500); 21 Jun 2012 13:14:30 -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 8230 invoked by uid 99); 21 Jun 2012 13:14:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 13:14:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.167.155.45] (HELO serveur-mails.SELA-LIGHT.COM) (217.167.155.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 13:14:24 +0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CD4FAF.349D787E" X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Subject: RE: Correct Derby software ? Date: Thu, 21 Jun 2012 15:10:18 +0200 Message-ID: <9FA7F6B8122B1143A124094C0234D788018916E7@serveur-mails.sela-light.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Correct Derby software ? Thread-Index: Ac1PrQM2th4SmTtvTMu+tUa6ha/X3gAAdDMw From: "Isabelle DASTUGUE" To: "Derby Discussion" This is a multi-part message in MIME format. ------_=_NextPart_001_01CD4FAF.349D787E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable My manifest : =20 Manifest-Version: 1.0 Main-Class: Main Class-Path: SimulProg\lib\tinylaf.jar = SimulProg\lib\swing-layout-1.0.3.jar SimulProg\lib\swt.jar = SimulProg\lib\grouplayout.jar SimulProg\lib\resources.jar = SimulProg\lib\rt.jar \ SimulProg\lib\RXTXcomm.jar = SimulProg\lib\gnu.io.rxtx_2.1.7.4_v20071016-7B57e7UAXMAAqGAGf.jar = SimulProg\lib\gnu.io.rxtx.sdk_2.1.7.4_v20071016-417C7DP1Bh_eEaQJBrHBHg.ja= r \ SimulProg\lib\derby.jar SimulProg\lib\derbyclient.jar = SimulProg\lib\derbynet.jar SimulProg\lib\derbytools.jar = SimulProg\lib\derbyrun.jar \ SimulProg\lib\jsse.jar SimulProg\lib\jce.jar = SimulProg\lib\sunjce_provider.jar SimulProg\lib\sunmscapi.jar \=20 SimulProg\lib\charsets.jar SimulProg\lib\dnsns.jar = SimulProg\lib\localedata.jar SimulProg\lib\sunpkcs11.jar =20 Cordially Isabelle DASTUGUE =20 De : Marco Ferretti [mailto:marco.ferretti@gmail.com]=20 Envoy=E9 : jeudi 21 juin 2012 14:58 =C0 : Derby Discussion Objet : Re: Correct Derby software ? =20 You need to have the jars in the classpath : either define it with = startup params of your application, put them in the jdk/jre's default = classpath, in the classpath defined in the machine or in the manifest = file of your jar = (http://docs.oracle.com/javase/tutorial/deployment/jar/downman.html) On Thu, Jun 21, 2012 at 1:54 PM, Isabelle DASTUGUE = wrote: Hello, I have a Derby database that works when I start it from Eclipse, but = when I try to run it from the. Jar of my application, it does not work. Here are two successive errors: java.sql.SQLException: Failed to start database 'C:\Test\Base' with = class loader sun.misc.Launcher$AppClassLoader@35ce36, see the next = exception for details. then Caused by: java.sql.SQLException: Startup failed due to missing = functionality for org.apache.derby.iapi.store.access.AccessFactory. = Please ensure your classpath includes the correct Derby software. I put the Derby access to my files in the classpath in environment = variables, but it's still not working. My four files: - Derby.jar, - Derbyclient.jar, - Derbynet.jar, - Derbytools.jar. Are exactly the same and on the same PC ... Without the call to the base, my. Jar works. With the base, I create the server, do I start Derby, I run the instance = but I cannot connect to the database at the address returned is = obviously good ... Any idea? Cordially Isabelle DASTUGUE =20 --=20 -- "No Im sorrys, no apologies, no regrets..... " ------_=_NextPart_001_01CD4FAF.349D787E Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

My manifest :

 

Manifest-Version: = 1.0

Main-Class: = Main

Class-Path: = SimulProg\lib\tinylaf.jar SimulProg\lib\swing-layout-1.0.3.jar = SimulProg\lib\swt.jar SimulProg\lib\grouplayout.jar SimulProg\lib\resources.jar SimulProg\lib\rt.jar = \

=A0SimulProg\lib\RXTXcomm.jar SimulProg\lib\gnu.io.rxtx_2.1.7.4_v20071016-7B57e7= UAXMAAqGAGf.jar SimulProg\lib\gnu.io.rxtx.sdk_2.1.7.4_v20071016-41= 7C7DP1Bh_eEaQJBrHBHg.jar \

=A0SimulProg\lib\derby.jar SimulProg\lib\derbyclient.jar SimulProg\lib\derbynet.jar SimulProg\lib\derbytools.jar SimulProg\lib\derbyrun.jar = \

=A0SimulProg\lib\jsse.jar SimulProg\lib\jce.jar SimulProg\lib\sunjce_provider.jar SimulProg\lib\sunmscapi.jar \

=A0SimulProg\lib\charsets.jar SimulProg\lib\dnsns.jar SimulProg\lib\localedata.jar SimulProg\lib\sunpkcs11.jar

 

Cordially=

Isabelle DASTUGUE

 

De : Marco = Ferretti [mailto:marco.ferretti@gmail.com]
Envoy=E9 : jeudi 21 juin 2012 14:58
=C0 : Derby Discussion
Objet : Re: Correct Derby software ?

 

You need to have the jars in the classpath : either define it with startup = params of your application, put them in the jdk/jre's default classpath, in the classpath defined in the machine or in the manifest file of your jar = (http://docs.oracle.com/javase/tutorial/deployment/jar/downman.html= )

On Thu, Jun 21, 2012 at 1:54 PM, Isabelle DASTUGUE = <isabelle.dastugue@sela-light.com> wrote:

Hello,

I have a Derby = database<= span lang=3DEN> that works when I start it from = Eclipse, but when I try to = run = it from the. Jar of my = application, it does not work.

Here are two successive errors:
java.sql.SQLExce= ption: Failed to start database 'C:\Test\Base' with class loader sun.misc.Launcher$AppClassLoader@35ce36, see the next exception for = details.
then
Caused by: java.sql.SQLException: Startup failed due to missing functionality = for org.apache.derby.iapi.store.access.AccessFactory. Please ensure your = classpath includes the correct Derby software.

I put the Derby = access to my files in the = classpath in environment = variables,
but it's still not working.

My four files:
- Derby.jar,
- Derbyclient.jar,
- Derbynet.jar,
- Derbytools.jar.
Are exactly the same and = on = the same PC ...

Without the call to the = base, my. Jar works.
With the base, I create the server, = do I = start Derby, I = run the instance but I cannot connect to the database<= span lang=3DEN> at the address returned = is obviously good ...

Any idea?

Cordially=

Isabelle DASTUGUE



 

--

--

"No Im sorrys, no apologies, no regrets..... "

------_=_NextPart_001_01CD4FAF.349D787E--