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 ceyesumma <ce...@hotmail.com> on 2010/10/13 16:00:27 UTC

apache_derby install

Hello .  I had Apache derby running with my app for several months works
great. Then the Crash.
Now I have to re-install everything.  This Apache_Derby_Embedded db install
I wanted to
 try to incororate the tools (ij) and all the other stuff I don't know
about.

I can show you what I have set up but no matter what I do I run the app and
it can not find
the var:driverName: org.apache.derby.jdbc.EmbeddedDriver
[code]

run:
CLASS ....
ConnectDerbyDAO: 
 --> in ConnectDerbyDAO(schoolofdb) var: schoolofdb <-- 
java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
 : xml dbProperties.getProperty:
org.apache.derby.jdbc.EmbeddedDriver...

...  Class.forName(driverName);
[/code]

I don't under stand how this works. I can not find it either. and I show
that I run
embeddedCP.bat thinking this will create the driver. Not even sure what it
is.
[b] sysinfo[/b]
[code]
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Steve>CD %DERBY_INSTALL%\bin

C:\db-derby-10.6.2.1-bin\bin>sysinfo
------------------ Java Information ------------------
Java Version:    1.6.0_21
Java Vendor:     Sun Microsystems Inc.
Java home:       C:\Program Files\Java\jdk1.6.0_21\jre
Java classpath: 
C:\db-derby-10.6.2.1-bin\lib\derby.jar;C:\db-derby-10.6.2.1-bin
\lib\derbytools.jar;C:\db-derby-10.6.2.1-bin\lib\derby.jar;C:\db-derby-10.6.2.1-
bin/lib/derby.jar;C:\db-derby-10.6.2.1-bin/lib/derbynet.jar;C:\db-derby-10.6.2.1
-bin/lib/derbyclient.jar;C:\db-derby-10.6.2.1-bin/lib/derbytools.jar
OS name:         Windows Vista
OS architecture: x86
OS version:      6.0
Java user name:  Steve
Java user home:  C:\Users\Steve
Java user dir:   C:\db-derby-10.6.2.1-bin\bin
java.specification.name: Java Platform API Specification
java.specification.version: 1.6
java.runtime.version: 1.6.0_21-b07
--------- Derby Information --------
JRE - JDBC: Java SE 6 - JDBC 4.0
[C:\db-derby-10.6.2.1-bin\lib\derby.jar] 10.6.2.1 - (999685)
[C:\db-derby-10.6.2.1-bin\lib\derbytools.jar] 10.6.2.1 - (999685)
[C:\db-derby-10.6.2.1-bin\lib\derbynet.jar] 10.6.2.1 - (999685)
[C:\db-derby-10.6.2.1-bin\lib\derbyclient.jar] 10.6.2.1 - (999685)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale :  [English/United States [en_US]]
Found support for locale: [cs]
         version: 10.6.2.1 - (999685)
Found support for locale: [de_DE]
         version: 10.6.2.1 - (999685)
Found support for locale: [es]
         version: 10.6.2.1 - (999685)
Found support for locale: [fr]
         version: 10.6.2.1 - (999685)
Found support for locale: [hu]
         version: 10.6.2.1 - (999685)
Found support for locale: [it]
         version: 10.6.2.1 - (999685)
Found support for locale: [ja_JP]
         version: 10.6.2.1 - (999685)
Found support for locale: [ko_KR]
         version: 10.6.2.1 - (999685)
Found support for locale: [pl]
         version: 10.6.2.1 - (999685)
Found support for locale: [pt_BR]
         version: 10.6.2.1 - (999685)
Found support for locale: [ru]
         version: 10.6.2.1 - (999685)
Found support for locale: [zh_CN]
         version: 10.6.2.1 - (999685)
Found support for locale: [zh_TW]
         version: 10.6.2.1 - (999685)
------------------------------------------------------
C:\db-derby-10.6.2.1-bin\bin>
[/code]

[b] Enviornment[/b]
[code]
C:\db-derby-10.6.2.1-bin\bin>
C:\db-derby-10.6.2.1-bin\bin>ECHO %DERBY_HOME%
C:\db-derby-10.6.2.1-bin

C:\db-derby-10.6.2.1-bin\bin>ECHO %DERBY_INSTALL%
C:\db-derby-10.6.2.1-bin

C:\db-derby-10.6.2.1-bin\bin>ECHO %CLASSPATH%
C:\db-derby-10.6.2.1-bin\lib\derby.jar;C:\db-derby-10.6.2.1-bin\lib\derbytools.j
ar;C:\db-derby-10.6.2.1-bin\lib\derby.jar

C:\db-derby-10.6.2.1-bin\bin>ECHO %Path%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\hp\bin\Python;C:\db-d
erby-10.6.2.1-bin\bin;C:\Program Files\Java\jdk1.6.0_21\bin;C:\Program
Files\ATI

Technologies\ATI.ACE\Core-Static;C:\db-derby-10.6.2.1-bin\lib\derby.jar;C:\db-d
erby-10.6.2.1-bin\lib\derbytools.jar;C:\db-derby-10.6.2.1-bin\lib\derby.jar;C:\a
nt\bin\ant.bat;C:\Program Files\Java\jdk1.6.0_21\bin\jave.exe

C:\db-derby-10.6.2.1-bin\bin>
C:\db-derby-10.6.2.1-bin\bin>ECHO %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_21

C:\db-derby-10.6.2.1-bin\bin>setEmbeddedCP.bat

C:\db-derby-10.6.2.1-bin\bin>SET DERBY_HOME=C:\DB-DER~1.1-B

C:\db-derby-10.6.2.1-bin\bin>set
CLASSPATH=C:\DB-DER~1.1-B\lib\derby.jar;C:\DB-D
ER~1.1-B\lib\derbytools.jar;C:\db-derby-10.6.2.1-bin\lib\derby.jar;C:\db-derby-1
0.6.2.1-bin\lib\derbytools.jar;C:\db-derby-10.6.2.1-bin\lib\derby.jar

C:\db-derby-10.6.2.1-bin\bin>



[/code]
thanks.

-- 
View this message in context: http://old.nabble.com/apache_derby-install-tp29953050p29953050.html
Sent from the Apache Derby Developers mailing list archive at Nabble.com.