X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C18A55285B for ; Wed, 3 Aug 2005 12:39:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95521-04 for ; Wed, 3 Aug 2005 15:39:26 +0000 (GMT) Received: from web25705.mail.ukl.yahoo.com (web25705.mail.ukl.yahoo.com [217.12.10.177]) by svr1.postgresql.org (Postfix) with SMTP id 30A945285A for ; Wed, 3 Aug 2005 12:39:25 -0300 (ADT) Received: (qmail 33523 invoked by uid 60001); 3 Aug 2005 15:39:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=cuEv1NxfJdk2yJvNyMQ6QAZTo8l/dQoqwXxvgy3xZA0eLcPsLRoPZfgmIIZIGlC9CvDaFtpENR+MyohrUTByGPjHHhc4YYQ85GI/KNi1jDfO3DHiA+zByaHjxmntevkmFGWwuTBvdJ+B5fGg+N43cmNM+BpeKMPEWR361UlUfTU= ; Message-ID: <20050803153923.33521.qmail@web25705.mail.ukl.yahoo.com> Received: from [62.23.83.125] by web25705.mail.ukl.yahoo.com via HTTP; Wed, 03 Aug 2005 17:39:23 CEST Date: Wed, 3 Aug 2005 17:39:23 +0200 (CEST) From: abdelkader belkadi Subject: pgsql-jdbc and Java To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-597556777-1123083563=:31619" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 tagged_above=0 required=5 tests=HTML_30_40, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200508/22 X-Sequence-Number: 13591 --0-597556777-1123083563=:31619 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello, I developped my java project with Java NetBeans IDE, the code connects to a postgreSQL database using the postgresql-8.1dev-400.jdbc3.jar driver, the project builds and executes correctly when using the IDE, however when trying to use the DOS command line as follow: D:\java -jar projectpath/projectname.jar the following error is generated: Class not found ! java.lang.ClassNotFoundException: org.postgresql.Driver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at logfilerewriter.Main.connectDb(Main.java:235) at logfilerewriter.Main.main(Main.java:45) I checked the class path, it is correctly set. The error disapears if I don't call the method that connects to the database, which means that their is no CLASSPATH problem. does somebody has the solution, or met this problem before...? thank you in advance --------------------------------- Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez le ici ! --0-597556777-1123083563=:31619 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hello,
I developped my java project with Java NetBeans IDE,
the code connects to a postgreSQL database using the postgresql-8.1dev-400.jdbc3.jar driver, the project builds and executes correctly when using the IDE, however when trying to use the DOS command line as follow:
D:\java -jar projectpath/projectname.jar
the following error is generated:
Class not found !
java.lang.ClassNotFoundException: org.postgresql.Driver
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at logfilerewriter.Main.connectDb(Main.java:235)
        at logfilerewriter.Main.main(Main.java:45)
I checked the class path, it is correctly set.
The error disapears if I don't call the method that connects to the database, which means that their is no CLASSPATH problem.
 
does somebody has the solution, or met this problem before...?
 
thank you in advance
 
 


Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici ! --0-597556777-1123083563=:31619--