Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
PLS HELP in connecting with jdbc driver - Mailing list pgsql-jdbc
From
Rohit Johry
Subject
PLS HELP in connecting with jdbc driver
Date
April 2, 2003
03:34:47
Msg-id
004201c2f9a2$9a631c80$9000000a@estelcom.com
Whole thread
Raw
List
pgsql-jdbc
Tree view
Hello,
I am a new user using the Postgre-sql for the first time please help me in establishing the connection between
JDBC
and
POSTGRE
.
POSTGRE >> 7.2.1
JAVA >> 1.4.1_01
LINUX >> 7.3
Having the
CLASSPATH
:
:/usr/share/pgsql/jdbc7.2dev-1.2.jar:/usr/lib/pgsql/pg72jdbc2.jar:/usr/java/j2sdk1.4.1_01/lib/*.jar
I got
ERROR
as
Sub : java.lang.ClassNotFoundException: org.postgresql:Driver
Rohit : java.sql.SQLException: No suitable driver
Here is my
CODE
"JDBC_POSTGRE.java"
import java.sql.*;
class JDBC_POSTGRE
{
public static void main(String args[])
{
Statement stmt1;
ResultSet rs1;
DatabaseMetaData dbmd1;
try
{
try
{
Class.forName("org.postgresql.Driver");
//Driver for POSTGRE-SQL :pg72jdbc2.jar
}
catch(Exception ex)
{
System.out.println("Sub : " + ex);
}
Connection conn1 = DriverManager.getConnection("jdbc:postgresql:AirTel_RTL", "", "");
//AirTel_RTL is a database, user='', password=''
stmt1 = conn1.createStatement();
rs1 = stmt1.executeQuery("Select * from tonedata"); // 'tonedata' is a table in database
while(rs1.next())
{
System.out.println(rs1.getInt("toneid") + "," + rs1.getString("tone_name") );
}
}
catch(Exception e)
{
System.out.println("Rohit : "+e);
}
}
}
I am not professional in Linux.
Hoping you will replay me very soon.
With regards,
Rohit
pgsql-jdbc
by date:
Previous
From:
Felipe Schnack
Date:
01 April 2003, 19:01:56
Subject:
preparedstatment pooling
Next
From:
Ryan Wexler
Date:
02 April 2003, 03:51:12
Subject:
prepared statements and sequences
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies