From: Arne Vajhøj on
On 04-04-2010 12:59, Lew wrote:
> Tom Anderson wrote:
>>> Derby aka JavaDB is included in JDK 1.6, right?
>
> Wayne wrote:
>> It is in 1.6.16, but Oracle has un-bundled it from the
>> newest versions of the JDK, despite the notice on the JavaDB
>> page that says it is bundled.
>
> That is /so/ not true!

I believe it was Roedy that started the claim of
Java DB missing.

Arne
From: Wayne on
Lew wrote:
> Tom Anderson wrote:
>>>>> Derby aka JavaDB is included in JDK 1.6, right?
>
> Wayne wrote:
>>>> It is in 1.6.16, but Oracle has un-bundled it from the
>>>> newest versions of the JDK, despite the notice on the JavaDB
>>>> page that says it is bundled.
>
> Lew wrote:
>>> That is /so/ not true!
>
> Wayne wrote:
>> I hate posting wrong information! Sorry! But, on my Windows 7
>> system the install for 1.6.0_19 did not ask about JavaDB
>> and didn't install Derby anyplace I could find it (such as
>> C:\Program Files(x86)\Sun or ...\Java or C:\Sun or C:\Program Files\Sun).
>> My attempts to use it resulted in the expected errors, as the derby jars
>> were not on CLASSPATH or in any ext directory.
>>
>> The FAQ, README, and Install help did not discuss JavaDB (or Derby).
>> In the end I downloaded JavaDB separately and it went just where I
>> expected. Then when I read this thread I posted the information.
>>
>> Could you please post where the JavaDB bundled with the JDK gets installed
>> to, on a Windows 7 system (32 or 64 bit)? Thanks!
>>
>
> I just now downloaded the Windows 32-bit JDK SE 6u19 installation
> program, but I don't have Windows 7. Still, it's the same
> installation program so I suspect the conclusion I draw is valid.
>
> The installation program after you accept the license displays a
> dialog that lets you alter installation directories for the Java
> components. It lists five components, the fifth of which is called
> "Java DB". The default directory for that component is "C:\Program
> Files\Sun\JavaDB". (I routinely change that.) I don't know how you
> could have missed it.
>
> --
> Lew
>

Where did you download the installer from? JavaDB no longer shows
in the one I used from <http://java.sun.com/javase/downloads/index.jsp>.
It *used* to show, as you say. But it doesn't show for me!

I'm wondering if this doesn't appear because I have a 64-bit computer?
I've tried installing the 64 bit Java but that broke other things, so
I install the 32 bit version. This works fine, but no JavaDB appears
in the installer. It didn't appear in the Add/Remove Programs list
after installing the JDK.

Very strange.

--
Wayne
From: John B. Matthews on
In article <4bb8fb99$0$4862$9a6e19ea(a)unlimited.newshosting.com>,
Wayne <nospan(a)all.invalid> wrote:

> Lew wrote:
> > Tom Anderson wrote:
> >>>>> Derby aka JavaDB is included in JDK 1.6, right?
> >
> > Wayne wrote:
> >>>> It is in 1.6.16, but Oracle has un-bundled it from the
> >>>> newest versions of the JDK, despite the notice on the JavaDB
> >>>> page that says it is bundled.
> >
> > Lew wrote:
> >>> That is /so/ not true!
> >
> > Wayne wrote:
> >> I hate posting wrong information! Sorry! But, on my Windows 7
> >> system the install for 1.6.0_19 did not ask about JavaDB and
> >> didn't install Derby anyplace I could find it (such as C:\Program
> >> Files(x86)\Sun or ...\Java or C:\Sun or C:\Program Files\Sun). My
> >> attempts to use it resulted in the expected errors, as the derby
> >> jars were not on CLASSPATH or in any ext directory.
> >>
> >> The FAQ, README, and Install help did not discuss JavaDB (or
> >> Derby). In the end I downloaded JavaDB separately and it went just
> >> where I expected. Then when I read this thread I posted the
> >> information.
> >>
> >> Could you please post where the JavaDB bundled with the JDK gets
> >> installed to, on a Windows 7 system (32 or 64 bit)? Thanks!
> >>
> >
> > I just now downloaded the Windows 32-bit JDK SE 6u19 installation
> > program, but I don't have Windows 7. Still, it's the same
> > installation program so I suspect the conclusion I draw is valid.
> >
> > The installation program after you accept the license displays a
> > dialog that lets you alter installation directories for the Java
> > components. It lists five components, the fifth of which is called
> > "Java DB". The default directory for that component is "C:\Program
> > Files\Sun\JavaDB". (I routinely change that.) I don't know how
> > you could have missed it.
>
> Where did you download the installer from? JavaDB no longer shows in
> the one I used from <http://java.sun.com/javase/downloads/index.jsp>.
> It *used* to show, as you say. But it doesn't show for me!
>
> I'm wondering if this doesn't appear because I have a 64-bit
> computer? I've tried installing the 64 bit Java but that broke other
> things, so I install the 32 bit version. This works fine, but no
> JavaDB appears in the installer. It didn't appear in the Add/Remove
> Programs list after installing the JDK.
>
> Very strange.

I just installed "JDK 6 Update 19 (JDK or JRE)" from the page you cited
into Windows 7, build 7100. By default, it installed Derby into
"C:\Program Files\Sun\JavaDB".

C:\Users\Me>javac -version
javac 1.6.0_19

C:\Users\Me>java -version
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)

[excerpted]
C:\Users\Me>dir "C:\Program Files\Sun\JavaDB\"
....
Directory of C:\Program Files\Sun\JavaDB
04/04/2010 04:52 PM <DIR> .
04/04/2010 04:52 PM <DIR> ..
08/11/2009 10:20 AM 11,224 3RDPARTY
04/04/2010 04:52 PM <DIR> bin
04/04/2010 04:52 PM <DIR> demo
04/04/2010 04:52 PM <DIR> docs
08/11/2009 10:20 AM 5,513 index.html
04/04/2010 04:52 PM <DIR> javadoc
04/04/2010 04:52 PM <DIR> lib
08/11/2009 10:20 AM 11,358 LICENSE
08/11/2009 10:20 AM 6,949 NOTICE
08/14/2009 11:28 PM 13,379 register.html
08/11/2009 10:20 AM 22,060 RELEASE-NOTES.html
....

[excerpted]
C:\Users\Me>javap -classpath
"C:\Program Files\Sun\JavaDB\lib\derby.jar"
org.apache.derby.jdbc.EmbeddedDataSource
public class org.apache.derby.jdbc.EmbeddedDataSource
extends org.apache.derby.jdbc.ReferenceableDataSource
implements javax.sql.DataSource{...}

--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
From: Lew on
Lew wrote:
>>> I just now downloaded the Windows 32-bit JDK SE 6u19 installation
>>> program, but I don't have Windows 7. Still, it's the same
>>> installation program so I suspect the conclusion I draw is valid.
>>>
>>> The installation program after you accept the license displays a
>>> dialog that lets you alter installation directories for the Java
>>> components. It lists five components, the fifth of which is called
>>> "Java DB". The default directory for that component is "C:\Program
>>> Files\Sun\JavaDB". (I routinely change that.) I don't know how
>>> you could have missed it.

Wayne wrote:
>> Where did you download the installer from? JavaDB no longer shows in
>> the one I used from <http://java.sun.com/javase/downloads/index.jsp>.
>> It *used* to show, as you say. But it doesn't show for me!

That's the place whence I got the download.

>> I'm wondering if this doesn't appear because I have a 64-bit
>> computer? I've tried installing the 64 bit Java but that broke other
>> things, so I install the 32 bit version. This works fine, but no
>> JavaDB appears in the installer. It didn't appear in the Add/Remove
>> Programs list after installing the JDK.
>>
>> Very strange.

I downloaded the 32-bit Windows version of the Java SE 6u19 JDK today, from
the same standard java.sun.com download page to which you linked. Java DB
showed up in the installer just as I described. Are you certain that you are
talking of the JDK installer and not the JRE installer?

I just installed the 64-bit Linux version of JDK 6u19 today and it put Derby
in $JAVA_HOME/db/ just like always.

John B. Matthews wrote:
> I just installed "JDK 6 Update 19 (JDK or JRE)" from the page you cited
> into Windows 7, build 7100. By default, it installed Derby into
> "C:\Program Files\Sun\JavaDB".
>
> C:\Users\Me>javac -version
> javac 1.6.0_19
>
> C:\Users\Me>java -version
> java version "1.6.0_19"
> Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
> Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
>
> [excerpted]
> C:\Users\Me>dir "C:\Program Files\Sun\JavaDB\"
> ...
> Directory of C:\Program Files\Sun\JavaDB
> 04/04/2010 04:52 PM <DIR> .
> 04/04/2010 04:52 PM <DIR> ..
> 08/11/2009 10:20 AM 11,224 3RDPARTY
> 04/04/2010 04:52 PM <DIR> bin
> 04/04/2010 04:52 PM <DIR> demo
> 04/04/2010 04:52 PM <DIR> docs
> 08/11/2009 10:20 AM 5,513 index.html
> 04/04/2010 04:52 PM <DIR> javadoc
> 04/04/2010 04:52 PM <DIR> lib
> 08/11/2009 10:20 AM 11,358 LICENSE
> 08/11/2009 10:20 AM 6,949 NOTICE
> 08/14/2009 11:28 PM 13,379 register.html
> 08/11/2009 10:20 AM 22,060 RELEASE-NOTES.html
> ...
>
> [excerpted]
> C:\Users\Me>javap -classpath
> "C:\Program Files\Sun\JavaDB\lib\derby.jar"
> org.apache.derby.jdbc.EmbeddedDataSource
> public class org.apache.derby.jdbc.EmbeddedDataSource
> extends org.apache.derby.jdbc.ReferenceableDataSource
> implements javax.sql.DataSource{...}
>

I suspect that some people are forgetting to include derby.jar in their
classpath when they claim they cannot find it with that "javap" command.

What else is weird is that I cannot see Wayne's recent posts in my news
reader, although they show up fine in Google Groups.

--
Lew
From: Tom Anderson on
On Sat, 3 Apr 2010, markspace wrote:

> Tom Anderson wrote:
>
>> Am i looking for the wrong driver class? Or do i have to include some
>> special jar on the classpath?
>
> I think you do. It should be in the /db directory in the JDK's main
> directory.
>
> http://weblogs.java.net/blog/forsini/archive/2006/06/java_db_is_now.html

Sadly, i don't seem to have such a directory:

$ ls $JAVA_HOME/
bin COPYRIGHT ext include jre lib LICENSE man README.html THIRDPARTYLICENSEREADME.txt

Nor is it in my JRE subdirectory:

$ ls $JAVA_HOME/jre
bin COPYRIGHT javaws lib LICENSE man plugin README THIRDPARTYLICENSEREADME.txt Welcome.html

Hmph.

tom

--
In Milan, [traffic lights] are instructions, in Rome suggestions, and
in Naples Christmas decorations. -- James Dowden