Hi,

I am using PostgreSQL - 6.5.1 with the JDBC driver
compiled from the sources.
My machine is RH6.0 with Java-1.2 preV2.

I am attatching a portion of my source code where it
gives exception

String url = "jdbc:postgresql:postgres";
String usr = "postgres";
String pwd = "postgres";
try
{
        Class.forName("postgresql.Driver");
        db = DriverManager.getConnection(url, usr, pwd);
        st = db.createStatement();
}
catch(ClassNotFoundException cls){
System.out.println("Classnotfound");}
catch(SQLException sl){
System.out.println("SQL");}
try
{
String crt="create table xyz(sadd int4,tadd int4,pid
int4,filen text,diff int2)";
st.executeUpdate(crt);
^^^^^^^^^^^^^^^^^^^^^^^^
//While executing this statement it gives nullpointer
exception
}
catch(IOException e)
{
System.out.println("Error "+e);
}

The program works fine if I dont prepare the jar file.

Thaking You
Alpesh

=====
KOTHARI ALPESH D.
STUDENT M. TECH.
CEDT
INDIAN INSTITUTE OF SCIENCE
BANGALORE-560 012
INDIA
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://messenger.yahoo.com


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to