Received: from email.alephint.it (email.alephint.it [195.120.14.164]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA77765 for ; Thu, 1 Jul 1999 12:08:22 -0400 (EDT) (envelope-from parisi@alephint.it) Message-id: Date: Thu, 01 Jul 1999 18:08:29 +0100 Subject: JDBC and Applet on Linux-Apache To: pgsql-interfaces@postgresql.org From: parisi@alephint.it (Tommaso Parisi) MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Hi everybody, I`ve a problem with an applet that simply connect itself to a postgres DB and receive the result of a SQL query.\\ Applet on Netscape give me the error: java.sql.SQLException: No suitable driver catched for the code Class.forName("postgresql.Driver") The incredible thing is that an application with the same code run correctly on the same machine!! Have anybody some suggestion? Thanks for the time, Filippo filippo@mbr.sigea.it Follow the code... P.S. import java.applet.*; import java.awt.*; import java.awt.event.*; import java.sql.*; //import postgresql.Driver.*; public class SQL extends Applet { Label blankLine = new Label(" "); TextField hostPort = new TextField(50); TextField dsn = new TextField(25); TextField sqlStatement = new TextField(50); TextArea results = new TextArea(20,70); Button submitButton = new Button("Submit query."); public void init() { Panel topPanel = new Panel(); Panel bottomPanel = new Panel(); Panel topPanels[] = new Panel[4]; for(int i=0;i