wood burning stoves 2.0*
The moose likes JDBC and the fly likes My textbook refers for Java DB (Derby), but I can not find /db/ directory...at Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "My textbook refers for Java DB (Derby), but I can not find /db/ directory...at " Watch "My textbook refers for Java DB (Derby), but I can not find /db/ directory...at " New topic
Author

My textbook refers for Java DB (Derby), but I can not find /db/ directory...at

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
My textbook(how to program 7th java, deitel) refers for Java DB (Derby), but I can not find /db/ directory...at C:\Program Files\Java\jdk1.6.0_15 ? well how install this embeded functionality?

C:\Program Files\Java\jdk1.6.0_15>dir
Volume in drive C is HP
Volume Serial Number is 92B7-446D

Directory of C:\Program Files\Java\jdk1.6.0_15

20/09/2009 18:59 <DIR> .
20/09/2009 18:59 <DIR> ..
09/08/2009 22:40 <DIR> bin
25/07/2009 06:23 3,841 COPYRIGHT
09/05/2010 23:12 <DIR> demo
09/08/2009 22:40 <DIR> include
09/08/2009 22:40 <DIR> jre
09/08/2009 22:40 <DIR> lib
09/08/2009 22:40 17,524 LICENSE
09/08/2009 22:40 17,632 LICENSE.rtf
09/08/2009 22:40 29,043 README.html
09/08/2009 22:40 25,828 README_ja.html
09/08/2009 22:40 21,275 README_zh_CN.html
09/08/2009 22:44 5,196 register.html
09/08/2009 22:44 5,615 register_ja.html
09/08/2009 22:44 4,793 register_zh_CN.html
09/08/2009 22:41 <DIR> sample
20/09/2009 19:00 <DIR> src
25/07/2009 06:24 19,641,316 src.zip
09/08/2009 22:40 252,567 THIRDPARTYLICENSEREADME.txt
11 File(s) 20,024,630 bytes
9 Dir(s) 254,014,259,200 bytes free

C:\Program Files\Java\jdk1.6.0_15>
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
textbook:
..............
2. Open the batch file setEmbeddedCP.bat (located in C:\Program Files\Java\
jdk1.6.0\db\frameworks\embedded\bin) in a text editor such as Notepad. Locate
the line
rem set DERBY_INSTALL=
and change it to
set DERBY_INSTALL=C:\Program Files\Java\jdk1.6.0\db
Also, comment out the line
@FOR %%X in ("%DERBY_HOME%") DO SET DERBY_HOME=%%~sX
by preceding it with REM as in
..............
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
161

Where did you download the JDK from? I just checked my local (Sun) JDK versions and I have jdk1.6.0_16 and jdk1.6.0_21 installed. Both of those have the Derby DB under jdk1.6.0_16/db and jdk1.6.0_21/db. Try installing the latest available JDK from the Oracle download site. I am on *nix OS and I see that you are on Windows. If the JDK installer asks you what packages should be installed, make sure that you do select the DB package or better still just select all.


[My Blog] [JavaRanch Journal]
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
may keep current JDK and add db plugin? downloaded from Sun...
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
161

Leonidas Savvides wrote:may keep current JDK and add db plugin? downloaded from Sun...


Sure, even that should be OK.
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
C:\Sun\AppServer\javadb

finally I follow configuration steps for this folder and worked...Derby is for testing only? what max capabilities has?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My textbook refers for Java DB (Derby), but I can not find /db/ directory...at
 
Similar Threads
Could not compile JTidy (jtidy-04aug2000r7-src) with JDK1.6
Problem with error page example
Which version to begin?