• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
..............
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
may keep current JDK and add db plugin? downloaded from Sun...
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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



Sure, even that should be OK.
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
C:\Sun\AppServer\javadb

finally I follow configuration steps for this folder and worked...Derby is for testing only? what max capabilities has?
 
You learn how to close your eyes and tell yourself "this just isn't really happening to me." Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic