[kaffe] supported JDBC drivers

calvin kaiwen cal_kaiwen at hotmail.com
Tue Feb 11 00:44:02 PST 2003


Hi,

I got this help from Victor that make the mysql - kaffe possible (maybe it
is known long time since, but just wish to share it out :))

Do the following:-

"set env variable
export CLASSPATH=$CLASSPATH: mysql-connector-java-2.0.14-bin.jar
assuming you are using bash"

Now, kaffe sees the mysql-j connector.
A big thank you to Victor King

Best regards,
Calvin


----- Original Message -----
From: "cal kaiwen" <cal_kaiwen at hotmail.com>
To: <robilad at yahoo.com>; <kaffe at kaffe.org>
Sent: Monday, February 10, 2003 11:52 AM
Subject: Re: [kaffe] supported JDBC drivers


> Hi,
>
> 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
> error:-
>
> 05-12-2002 12:41:57.239 [INFO] [main] JDBC Driver class:
> com.mysql.jdbc.Driver
> 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
> connection, exiting...
>
> 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
>
> /usr/share/kaffe/mysql-connector-java-2.0.14-bin.jar
> /usr/bin/mysql-connector-java-2.0.14-bin.jar
> /usr/lib/kaffe/mysql-connector-java-2.0.14-bin.jar
>
> But sadly, I still cannot get it right :)
>
> Please advice.
>
> Best Regards,
>
> Calvin
>
>
>
>
>
>
> >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)
> >
> >Hi Calvin,
> >
> >--- cal kaiwen <cal_kaiwen at hotmail.com> wrote:
> > > Dear all,
> > >
> > > Looking at this page:-
> > >
> > >
> >http://www.kaffe.org/compatibility_applications.shtml#jdbcdrivers
> > >
> > > 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 ;)
> >
> >cheers,
> >dalibor topic
> >
> >__________________________________________________
> >Do you Yahoo!?
> >Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> >http://mailplus.yahoo.com
>
>
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>




More information about the kaffe mailing list