This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: java.lang.ClassNotFoundException: sun.jdbc.odb


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]