Article View: borland.public.jbuilder.java.language
Article #15414Re: JDBC Driver
From: Jonathan Moore
Date: Thu, 17 Jun 1999 00:00
Date: Thu, 17 Jun 1999 00:00
21 lines
2487 bytes
2487 bytes
> I'm not sure why it can't find the class since I imported sun.jdbc.odbc.*; I'm pretty sure that's irrelevant - you're referencing the class by its name as a string, which won't be interpreted at compile-time. You need to make sure that the class is accessible at run-time, which may involve looking at your CLASSPATH setting when you run the applet (in JDK1.2, it's there ok, in rt.jar). If your applet is running using a different classpath or runtime environment (such as a browser's), then you may well have difficulties. (If you're using the JDK to compile, try the applet in the appletviewer). Then there are the security restrictions on class loading for applets, about which I know nothing except that I would expect the exception thrown to be a security one, rather than class not found. Follow the earlier suggestion for printing out the full details of the exception and the stack. Jon Moore
Technical Details
Message-ID:
<3768F2BB.5E5F6590@lboro.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7k8ch6$j8u$1@mailint03.im.hou.compaq.com> <7k8ee0$f68@newstoo.ericsson.se> <7k8g9b$lft$1@mailint03.im.hou.compaq.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d6b,4a2d57c24fdb42a9 X-Google-Attributes: gid111d6b,public X-Google-Thread: f5d71,4a2d57c24fdb42a9 X-Google-Attributes: gidf5d71,public X-Google-Thread: fa45f,4a2d57c24fdb42a9 X-Google-Attributes: gidfa45f,public X-Google-Thread: 10bb9b,4a2d57c24fdb42a9 X-Google-Attributes: gid10bb9b,public X-Google-Thread: 113ae9,1b231ae46583c0cb X-Google-Attributes: gid113ae9,public X-Google-Thread: f74b3,4a2d57c24fdb42a9 X-Google-Attributes: gidf74b3,public X-Google-Thread: fecd1,4a2d57c24fdb42a9 X-Google-Attributes: gidfecd1,public X-Google-Thread: 115d3b,4a2d57c24fdb42a9 X-Google-Attributes: gid115d3b,public From: Jonathan Moore <J.P.Moore@lboro.ac.uk> Subject: Re: JDBC Driver Date: 1999/06/17 Message-ID: <3768F2BB.5E5F6590@lboro.ac.uk> X-Deja-AN: 490656318 Content-Transfer-Encoding: 7bit References: <7k8ch6$j8u$1@mailint03.im.hou.compaq.com> <7k8ee0$f68@newstoo.ericsson.se> <7k8g9b$lft$1@mailint03.im.hou.compaq.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@lboro.ac.uk X-Trace: sun-cc204.lboro.ac.uk 929624886 14681 158.125.64.50 (17 Jun 1999 13:08:06 GMT) Organization: Chemical Engineering Department, Loughborough University Mime-Version: 1.0 NNTP-Posting-Date: 17 Jun 1999 13:08:06 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