This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java.lang.ClassNotFoundException: sun.jdbc.odb
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: kingpak <kingpak at asiaprice dot com>
- Cc: GCJ <java at gcc dot gnu dot org>
- Date: Fri, 10 Sep 2004 11:37:23 +0530
- Subject: Re: java.lang.ClassNotFoundException: sun.jdbc.odb
- References: <WorldClient-F200409101225.AA25490521@asiaprice.com>
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/