My textbook refers for Java DB (Derby), but I can not find /db/ directory...at
Leonidas Savvides
Ranch Hand
Joined: Jan 31, 2010
Posts: 311
posted
0
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
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
..............
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.