java.lang.ClassNotFoundException: sun.jdbc.odb
Ranjit Mathew
rmathew@gmail.com
Fri Sep 10 06:10:00 GMT 2004
kingpak wrote:
> My java program gets data from MS-SQL database via jdbcodbc. It could
> compile sucessfully using gcj. But, when i ran it, it gave me the following
> dump:
>> 2004年09月09日 21:05:06 : Connection: java.lang.ClassNotFoundException:
> sun.jdbc.odb
> c.JdbcOdbcDriver not found in [file:.,円 core:/]
Sun's proprietary classes are not included with
libgcj. Your best bet would be to either use a "thin"
JDBC driver or a "thick" one that doesn't depend
on the JDBC-ODBC bridge.
> 2004年09月09日 21:05:06 : Finish loading
> java.lang.NullPointerException
> at 0x0046695e (Unknown Source)
> at 0x00466372 (Unknown Source)
To avoid such unhelpful stack traces, you should
put "addr2line" and "c++filt" in your PATH. For
example, if you're using MinGW, put the "bin" folder
of your MinGW installation in your PATH.
HTH,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/
More information about the Java
mailing list