This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178902 - Why Is Sample Java DB not available for just a Java SE install
Summary: Why Is Sample Java DB not available for just a Java SE install
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Derby (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-20 06:01 UTC by David.m Beer
Modified: 2010-03-18 09:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David.m Beer 2009-12-20 06:01:55 UTC
Hi I have just installed a JAVA SE version of the IDE so no web. I trying to do the platform tutorial for the CRUD Database application. It says to sue the sample db. However that is only availble if i add a glassfish server.

I think the sample db should be made available for the standard install. I could not find it in the plugins list either.
Comment 1 Jiri Rechtacek 2009-12-21 01:07:40 UTC
Do you mean jdbc:derby://localhost:1527/sample? It's _usually_ available on most platforms, e.g. there is on my Ubuntu with NetBeans 6.8 Java SE. JavaDB is part of Sun JDK1.6. I'm afraid openjdk doesn't include JavaDB, JDK1.5 neither. I guess if you are running such java, that's a reason why you don't see sample JavaDB.
However, Glassfish included JavaDB too for GF users. If you like to use JavaDB from GF you have to install GF and activate Web and J2EE functionality. In addition, you can customize properties of JavaDB node in Services tab and point to JavaDB in GF yourself.
So, I've closed this issue as INCOMPLETE because I don't know your java distribution. The problem JavaDB in Glassfish is already filed as issue 178802.
Comment 2 David.m Beer 2009-12-21 04:53:34 UTC
(In reply to comment #1)
> Do you mean jdbc:derby://localhost:1527/sample? It's _usually_ available on
> most platforms, e.g. there is on my Ubuntu with NetBeans 6.8 Java SE. JavaDB is
> part of Sun JDK1.6. I'm afraid openjdk doesn't include JavaDB, JDK1.5 neither.
> I guess if you are running such java, that's a reason why you don't see sample
> JavaDB.
> However, Glassfish included JavaDB too for GF users. If you like to use JavaDB
> from GF you have to install GF and activate Web and J2EE functionality. In
> addition, you can customize properties of JavaDB node in Services tab and point
> to JavaDB in GF yourself.
> So, I've closed this issue as INCOMPLETE because I don't know your java
> distribution. The problem JavaDB in Glassfish is already filed as issue 178802.

Hi I should have been more clear. I am using Fedora 12 and openjdk 1.6. I can see what you are saying and thought this might be the case. The bug you point to is similar but not the same as the mine. I am trying to say that if you don't have sun-jdk installed or glassfish we have no access to the derby-db jars. Considering most of the tutorials are done with the derby db this seems a bit odd that they are not being provided with netbeans IDE.

Can't netbeans just provide a version of the derby-db (java db) for us a a library like a lot of the other libraries are done. This would solve a lot of problems.
Comment 3 Jiri Rechtacek 2010-03-18 09:55:29 UTC
Fixed in NetBeans IDE Dev (Build 201003180200)