Article View: borland.public.jbuilder.java.language
Article #15393Re: JDBC Driver
From: MJR
Date: Wed, 16 Jun 1999 00:00
Date: Wed, 16 Jun 1999 00:00
24 lines
2208 bytes
2208 bytes
The exception prints: java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver I'm not sure why it can't find the class since I imported sun.jdbc.odbc.*; Not sure if this helps, but I'm running this from an applet. >I really would recommend that you, instead of typing: > System.err.println( "Failed to load JDBC/ODBC driver." ); >would type: > System.err.println( "Failed to load JDBC/ODBC driver, reason: >"+e.getMessage()); >or add this line below: > e.printStackTrace(); > >That way, you get lots of helpful information on what exactly went wrong. >With the current input, I can't give any more help than that. >There's at least a half dozen possible reasons for the malfunction. > >Hope that helps. > /Fredrik L�nnergren > > >
Technical Details
Message-ID:
<7k8g9b$lft$1@mailint03.im.hou.compaq.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7k8ch6$j8u$1@mailint03.im.hou.compaq.com> <7k8ee0$f68@newstoo.ericsson.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d6b,4a2d57c24fdb42a9 X-Google-Attributes: gid111d6b,public X-Google-Thread: 10bb9b,4a2d57c24fdb42a9 X-Google-Attributes: gid10bb9b,public X-Google-Thread: f5d71,4a2d57c24fdb42a9 X-Google-Attributes: gidf5d71,public X-Google-Thread: 113ae9,1b231ae46583c0cb X-Google-Attributes: gid113ae9,public X-Google-Thread: fecd1,4a2d57c24fdb42a9 X-Google-Attributes: gidfecd1,public X-Google-Thread: f74b3,4a2d57c24fdb42a9 X-Google-Attributes: gidf74b3,public X-Google-Thread: fa45f,4a2d57c24fdb42a9 X-Google-Attributes: gidfa45f,public X-Google-Thread: 115d3b,4a2d57c24fdb42a9 X-Google-Attributes: gid115d3b,public From: "MJR" <Rao.Mohith@compaq.com> Subject: Re: JDBC Driver Date: 1999/06/16 Message-ID: <7k8g9b$lft$1@mailint03.im.hou.compaq.com> X-Deja-AN: 490290944 References: <7k8ch6$j8u$1@mailint03.im.hou.compaq.com> <7k8ee0$f68@newstoo.ericsson.se> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 929547371 22013 172.18.100.18 (16 Jun 1999 15:36:11 GMT) Organization: Compaq Computer Corp. NNTP-Posting-Date: 16 Jun 1999 15:36:11 GMT Newsgroups: borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.api,comp.lang.java.help,comp.lang.java.machine,comp.lang.java.misc,comp.lang.java.security,microsoft.public.inetexplorer.ie4.java_applets