I have to ask the obvious. Are the Toolbox classes are available to the
applet? The most common reason for the error is the Toolbox jar is not in
the classpath, the Toolbox jar is not in the "archive=" parm of the applet
tag, or the Toolbox classes (not the jar, the .class files) are not in the
same place as the applet.
David Wall
AS/400 Toolbox for Java
tmalin@hannasteel.com@midrange.com on 12/29/2000 03:31:13 PM
Please respond to JAVA400-L@midrange.com
Sent by: owner-java400-l@midrange.com
To: <JAVA400-L@midrange.com>
cc:
Subject: Connecting to an AS/400 DB with an Applet??
I receive the following error with my applet 'no suitable driver' I am
using the IBM JDBC driver
Any help would greatly be appreciated...
sample code::
import java.net.URL;
import java.awt.*;
import java.applet.Applet;
import java.sql.*;
import com.ibm.as400.access.*;
// begin the applet ********************************************
public class Dbf extends java.applet.Applet
{
Button DBFConnect = new Button("Connect to AS/400");
TextField QueryField = new TextField(40);
TextArea OutputField = new TextArea(10,95);
Connection con ;
static{
try{
Class.forName("com.ibm.as400.access.AS400JDBCDriver");
}catch(ClassNotFoundException e)
{ e.printStackTrace(); }
} // end static
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---