Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 275D19FB5C9 for ; Tue, 15 May 2007 08:21:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 84821-01 for ; Tue, 15 May 2007 08:21:47 -0300 (ADT) X-Greylist: delayed 00:16:56.653284 by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 2CD939FB5C8 for ; Tue, 15 May 2007 08:21:46 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from relay.cwz.nl (relay.cwz.nl [62.192.97.6]) by svr4.postgresql.org (Postfix) with ESMTP id 4B2C55AF888 for ; Tue, 15 May 2007 11:04:49 +0000 (GMT) Received: from relay.cwz.nl (localhost [127.0.0.1]) by localhost.cwz.nl (TUNIX/Firewall Mail Server) with ESMTP id 147E012BE3 for ; Tue, 15 May 2007 13:04:39 +0200 (CEST) Received: by relay.cwz.nl (TUNIX/Firewall Mail Server) with ESMTP for ; Tue, 15 May 2007 13:04:39 +0200 (CEST) Received: from DO1-MTA by pscwz3.cwz.nl with Novell_GroupWise; Tue, 15 May 2007 13:04:25 +0200 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.5 Date: Tue, 15 May 2007 13:04:09 +0200 From: "Geert Verhaag" To: Subject: JDBC and ClassNotFoundException Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/44 X-Sequence-Number: 17034 Dear Members, I'm currently involved in a database project and have written a GUI in Java to manipulate a PostgreSQL database (server version 8.2). I've developed the GUI using NetBeans 5.5 (loaded the postgresql-8.2-504.jdbc3.jar as JDBC driver) on a Windows XP professional platform. Building the projetc's jar file works fine and running the Java program on the Windows XP machine runs smoothly. Deleting, adding and updating tuples works just fine! Now I want to run the program's jar file on a Linux platform (OpenSuSe 10.2). So I launch the application with the command: java -jar AppName.jar at the command prompt, and the program starts correctly, by displaying the GUI. However when I want to try to connect to the database by entering the required username and password, I get the ClassNotFoundException: org.postgresql.Driver runtime error. By the way, the server on the Windows XP machine is listening for TCP/IP connections (listen_addresses = '*' in the postgresql.conf file!) Can anybody give a hint on how to solve this problem? Some CLASSPATH problem perhaps? Specifying the JDBC driver in the classpath option of the java-command doesn't seem solve the problem either. I'm afraid that I don't understand the loading mechanism of the JDBC driver, and perhaps someone can explain it to me. Thanks in advance! Regards, Gerard Verhaag ========================================== Dit bericht is uitsluitend bestemd voor de geadresseerde. Het bericht kan vertrouwelijke informatie bevatten. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht onmiddellijk de afzender te informeren. Ook verzoeken wij u het bericht te vernietigen en de inhoud niet onder derden te verspreiden of te gebruiken. This message is intended exclusively for the addressee. It may contain information that is confidential. If you are not the intended recipient, we request that you notify the sender immediately. In that case, we also request that you destroy the message and that you neither use the contents nor disclose them in any manner to third parties. ==========================================