aspose file tools
The moose likes JDBC and Relational Databases and the fly likes JDBC Applet problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC Applet problem" Watch "JDBC Applet problem" New topic

JDBC Applet problem

Arthur Johnson

Joined: Feb 04, 2004
Posts: 2
I am trying to run a sample JDBC Applet code I picked from Sun's Java web site. I have a Derby DB sitting on my local PC and thought I would be able to leverage the sample to connect to this local DB and issue a select SQL statement and display the results. But it throws me an error stating:

SQLException: java.sql.SQLException: Not suitable driver found
Any pointers as to why I am getting this error?

My CLASSPATH environment variable is set to:
C:\db-derby-\lib\derby.jar;.;C:\Program Files\Java\jre1.6.0_03\lib\ext\

Sample Java Code:

Thanks in advance for any help.

[ December 19, 2007: Message edited by: Arthur Johnson ]
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31571

Welcome to JavaRanch!

I'm going to move this to our Applets forum where they know about how classpaths affect applets.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: JDBC Applet problem