Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Janeice DelVecchio
Saloon Keeper
Posts: 1809
12
Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rob Spoor
Sheriff
Pie
Posts: 20531
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Janeice DelVecchio
Saloon Keeper
Posts: 1809
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!

I'll try rerunning the installer.
 
Janeice DelVecchio
Saloon Keeper
Posts: 1809
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1809
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jenna Thomas
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Rob Spoor
Sheriff
Pie
Posts: 20531
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaDB is installed in a different folder by default, if I recall correctly C:\Program Files\Sun\JavaDB.
 
Jenna Thomas
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic