[kaffe] supported JDBC drivers
cal_kaiwen at hotmail.com
Sun Feb 9 19:52:01 PST 2003
I managed to set up kaffe on a linux without any difficulty.
I can get the following, when I do > java -version.
[root at son-ag Users]# java -version
Kaffe Virtual Machine
Copyright (c) 1996-2000
Transvirtual Technologies, Inc. All rights reserved
Engine: Just-in-time v3 Version: 1.0.6 Java Version: 1.1
I am able to run a simple HelloWorld program, but I hav problem connecting
it to mySQL database. I am reporting my findings here, hope can share this
with all of you :)
I tried to execute a jar file > java -jar test.jar, I got the following
05-12-2002 12:41:57.239 [INFO] [main] JDBC Driver class:
05-12-2002 12:41:57.241 [ERROR] [main] Cannot find the database driver
classes: java.lang.ClassNotFoundException: com/mysql/jdbc/Driver
05-12-2002 12:41:57.242 [ERROR] [main] Failed to initialize database
Obviously, the mySQL-JDBC driver cannot be located.
In a Sun java SDK, what I did is copy mysql-connector-java-2.0.14-bin.jar to
/usr/java/j2re1.4.1_01/lib/ext/ and everything works fine.
Where should I copy this file to when using kaffe? I have distribute this
.jar file almost everywhere > locate connector
But sadly, I still cannot get it right :)
>From: Dalibor Topic <robilad at yahoo.com>
>To: cal kaiwen <cal_kaiwen at hotmail.com>, kaffe at kaffe.org
>Subject: Re: [kaffe] supported JDBC drivers
>Date: Fri, 7 Feb 2003 02:54:08 -0800 (PST)
>--- cal kaiwen <cal_kaiwen at hotmail.com> wrote:
> > Dear all,
> > Looking at this page:-
> > Is it confirm that kaffe jdbc support only
> > POSTgresql and Oracle 8i/9i?
> > How about mysql and microsoft SQL server?
>I can't say, I haven't had a need to use databases yet
>It would be nice if you could try it out, see what
>works and report back to the mailing list.
>There is some sql code from Classpath that I could
>merge in if it would improve things, but I'd need
>someone who uses databases to test it first ;)
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
More information about the kaffe