RE: Failing to Prepare Postgres.jar file
Here is a copy of the compiled Jar file. Just add it to you classpath. I did this in /etc/profile. I believe that you can download this file as well from http://www.retep.org.uk/postgres/ It workes really great for me. -Original Message- From: ALPESH KOTHARI [SMTP:[EMAIL PROTECTED]] Sent: Saturday, July 31, 1999 8:38 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject:Failing to Prepare Postgres.jar file Hello, I am using Postgresql-6.4.3-2. I want to use JDBC. so as a first point i need postgres.jar file. when i execute the commands as follows it gives the error as follows: #cd /usr/src/pgsql/src/interfaces/jdbc #make all javac postgresql/CallableStatement.java postgresql/CallableStatement.java:37: Can't subclass interfaces: interface java.sql.PreparedStatement public class CallableStatement extends PreparedStatement implements java.sql.CallableStatement ^ Note: postgresql/CallableStatement.java uses or overrides a deprecated API. Recompile with "-deprecation" for details. 1 error, 1 warning make: *** [postgresql/CallableStatement.class] Error 1 If any one of you have came across this error please help me. Thanking You, Alpesh === KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA _ Do You Yahoo!? Free instant messaging and more at http://messenger.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] jdbc6.4.jar
RE: PostgreSQL and JAVA
Go to http://www.retep.org.uk/postgres/ and dowload the JAR file for the version of Postgres that you are using. They seem to be pretty much compatible with each other. There are also some PDF files which you can download. This should take you through. If you still lost, have a look at the following sample : String dbUrl = "jdbc:postgresql://"+host+"/tour"; Class.forName("postgresql.Driver"); c = DriverManager.getConnection(dbUrl, "tour", ""); s=c.createStatement(); rback=s.executeQuery("Select username,level from users where (userid='"+userid.getSelectedItem()+"' and password='"+password.getText()+"')"); r=""; while (rback.next()) { r=rback.getString("username"); l=rback.getInt("level"); options.sign=r; options.level=l; } c.close(); -Original Message- From: Marcos Seoane [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, August 04, 1999 7:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject:PostgreSQL alguem tem algum programa de exemplo ou pode fazer um pra mim de sistema JAVA conectando um banco de dados PostgreSQL...eu seria muitissimo grato... []'s Marcos Seoane -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]