Forums Register Login

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

1
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thanks!

I'll try rerunning the installer.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
JavaDB is installed in a different folder by default, if I recall correctly C:\Program Files\Sun\JavaDB.
+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
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 RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 7447 times.
Similar Threads
JavaDB getting started
JDBC/Servlets question
Derby Embedded vs. Derby Network Server
free database
Alternative to Database
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:59:15.