This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
class.forName() and java.sql
- From: "Erik Poupaert" <erik dot poupaert at chello dot be>
- To: <java at gcc dot gnu dot org>
- Date: Sun, 26 Jan 2003 23:56:50 +0100
- Subject: class.forName() and java.sql
I've natively compiled hSql into libhsql.a in order to embed an rdb in a
test application I'm creating on minGW.
The first snag is the fact that java.sql.DriverManager.getConnection()
doesn't work, because class.forName() doesn't work. I circumvented the
problem by using directly the jdbcDriver class. But then I ran into another
snag:
"""java.sql.SQLException: java.util.MissingResourceException: Bundle
gnu.java.locale.Calendar not found."""
I guess it's related to the same problem, i.e., the fact that
class.forName() doesn't work; since the java.util.date and
java.util.Calendar related methods seem to use class.forName(). But on top
of that, it's very hard to locate the problem and work around it, because I
can't get a stacktrace on minGW in this version of GCJ.
Has anybody else tried to use java.sql on minGW? I may switch over to mySql,
if anybody has succeeded in making its jdbc driver work on minGW? I'll
postpone the embedded rdb stuff until after these problems have been
resolved.
I'd really appreciate if anybody could share his experience with me, and a
statement on whether it works or not, regarding GCJ/minGW + mysql/jdbc,
because that would spare me from trying to work on it, just find out
eventually that it doesn't work ...