aspose file tools*
The moose likes Beginning Java and the fly likes JDK 6 and JavaDB or Apache Derby... How do I install? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JDK 6 and JavaDB or Apache Derby... How do I install?" Watch "JDK 6 and JavaDB or Apache Derby... How do I install?" New topic
Author

JDK 6 and JavaDB or Apache Derby... How do I install?

Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1732
    
  12

Can anyone tell me how to unpack and install the "JavaDB" that comes with JDK6?

All the Sun links are outdated and send me to the Apache Website.

It says everywhere that Java 6 includes JavaDB (what was called Apache Derby), but no one tells me where I can install it.

Thanks,
Janeice


When you do things right, people won't be sure you've done anything at all.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19790
    
  20

When you start the JDK installer, somewhere at the start you can select the different components to install. Here you can also change the path; at the bottom for the JDK itself, but if you select JavaDB you can change its own path.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1732
    
  12

Thanks!

I'll try rerunning the installer.
Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1732
    
  12

No dice, Rob Prime.

I reinstalled the JDK and made sure all the boxes that said "This feature will be installed to the hard disk" were checked.

I suppose it's a POSSIBILITY that it's been installed this whole time and I dunno how to access/use it.

My textbook gives instructions on where to find the JavaDB driver, and how to test an existing database from the source code supplied with the textbook.... but it also gives instructions on installation of other DBMS (get an installation CD, etc.). This leads me to believe that I need a DBMS running on my computer (which there isn't) to use the driver.

Thanks for helping me out,
Janeice
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  70
I don't think there's anything special to install. JavaDB is just Java classes that are part of standard Java 6, so if you have that you're good to go. Have you actually tried to use it?

It hs different modes to run it in, though. If you want to use its server mode -where it runs in its own process- you'll need to fire it up separately from the client application. But for embedded mode that's not necessary.
Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1732
    
  12

It wasn't there. I had to go to the Sun website and install it separately. I don't know why.

There was no Java\db\lib folder. I installed the JavaDB separately and it created a Sun\JavaDB folder.

I just thought it was supposed to come with the JDK.
Janeice
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  70
I just thought it was supposed to come with the JDK.

That was my understanding too. At least, that's how I interpret this page.

I actually prefer the standalone version from Apache, since it always takes some time before its enhancements find their way back into Sun's version.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

I have installed it using the JDK installer. On a clean system, I never got it to install the first time. After the initial install, I ran the installer again, and got it working. Something messed up with the installer.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Jenna Thomas
Greenhorn

Joined: Oct 03, 2005
Posts: 27
I know this topic is a bit old(only 2 years old!) but, Im facing the same problem on my recent installation of Jdk 1.6. I dont see the JAVA_HOME/db folder anywhere after installing it.. What magic step have I forgotten(I did install all the modules in the jdk)

Could you guys let me know if you've figured this out? thanks much!


Cheers!
Jenn SCJP1.5
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19790
    
  20

JavaDB is installed in a different folder by default, if I recall correctly C:\Program Files\Sun\JavaDB.
Jenna Thomas
Greenhorn

Joined: Oct 03, 2005
Posts: 27
Thats right.. it *should* be there.. even this page says so.. but I cant find such an folder anywhere.. Also, I tried setting the JAVA_HOME variable in a command prompt and trying to run the Jdk installer from this command prompt.. Still no deal.. Oh well.. I tried, I think I'll do a manual install.. Thanks anyway!
George Computer Science
Greenhorn

Joined: Sep 10, 2011
Posts: 1

It is true. I have just re-installed JDK 1.6.0 update 27 and NOTHING! No JavaDb or DB or whatever folder!!! I have also installed JDK v1.7.0 and THERE IS a db folder!!! And, on top of it, I have installed GlassFish v2.1.1 (separately) and THERE IS a javadb folder and guess what: Its content is very similar to that of JDK v1.7.0!!! And ... there is more... I have also installed GlassFish v3.1.1 (bundled with Java Platform Enterprise Edition Developer Kit 7) and there is a javadb folder with a very similar content, too. (No db folder in the jdk7 folder inside, though.)

So, in short, I think is a problem is JDK 1.6.0. It did not create any folder named db as JDK v1.7.0 did. Both GlassFish v2.1.1 and v3.1.1 have a javadb folder. In case the GlassFish server is bundled with Java EE, the included jdk folder does not contain any db folder (I does not make any sense to bundle Java DB twice).

As I use several versions of NetBeans I just registered the version in JDK v1.7.0 and worked with no problem. Nevertheless, the IDE itself in my case only works if the property named netbeans_jdkhome (in etc/netbeans.conf) points to JDK v1.6.0.

George
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDK 6 and JavaDB or Apache Derby... How do I install?