This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Runtime Configuration & JDBC Drivers
- From: MHewitt at tacintel dot com
- To: java at gcc dot gnu dot org
- Cc: MHewitt at tacintel dot com
- Date: Fri, 6 Dec 2002 11:38:14 -0500
- Subject: Runtime Configuration & JDBC Drivers
Sorry for posting the newbie question,
but I am having problems finding examples.
Please respond with URLs/suggestions/FAQ/forum.
gcj (GCC) 3.2.1
Linux Mandrake release 7.2 (Odyssey) for i586
Kernel 2.2.17-21mdk on an i686
I have read the GCJ manual online.
I have compiled and run a simple 'Hello World'.
I extended it to access a JDBC connection and print out the values in a
table.
However, I get the following runtime exception:
java.sql.SQLException: Driver not found for URL: jdbc:mysql://dbhost:3306/
at 0x40267f80: _ZN4java4lang9ThrowableC1EPNS0_6StringE
(/usr/local/lib/libgcj.so.3)
at 0x40258996: _ZN4java4lang9ExceptionC1EPNS0_6StringE
(/usr/local/lib/libgcj.so.3)
at 0x403211d9: _ZN4java3sql12SQLExceptionC1EPNS_4lang6StringES4_i
(/usr/local/lib/libgcj.so.3)
at 0x40321166: _ZN4java3sql12SQLExceptionC1EPNS_4lang6StringE
(/usr/local/lib/libgcj.so.3)
at 0x40320fb7:
_ZN4java3sql13DriverManager13getConnectionEPNS_4lang6StringEPNS_4util10Prope
rtiesE (/usr/local/lib/libgcj.so.3)
at 0x40320eb4:
_ZN4java3sql13DriverManager13getConnectionEPNS_4lang6StringES4_S4_
(/usr/local/lib/libgcj.so.3)
<<snip>>
The driver is in the classpath for the program (com.mysql.jdbc.Driver).
The program will execute with the Sun JVM (jdk 1.4.1_01)
I realize it is probably something simple I have overlooked.
Any suggestions??
Thanks in advance,
- Mike Hewitt
mhewitt@tacintel.com