Re: Jar file with JDBC

1999-12-29 Thread M.N.Balaji
hai, I have installed JDK 1.2.2 on Redhat 6.0, i am able to compile and run java programs , but rmi is giving problems, when i type rmic it is giving the following error. Please tell me how to rectify the problem. java.lang.NoClassDefFoundError: sun/rmi/rmic/Main at java.lang.Throwable

Re: Jar file with JDBC

1999-12-29 Thread Peter Mount
On Wed, 29 Dec 1999, ALPESH KOTHARI wrote: > > Hi, > > When I added 'System.out.printStackTrace()' it told > while compilation > Method printStackTrace() not found in class > java.io.PrintStream. > > System.out.printStackTrace(); > > I have imported java.io.*;

RE: Jar file with JDBC

1999-12-29 Thread Edson Carlos Ericksson Richter
The correct is not try { //some piece of code } catch( Exception e ) { e.printStackTrace( System.out ); } ??? -- From: ALPESH KOTHARI Sent: quarta-feira, 29 de dezembro de 1999 07:44 To: Peter Mount Cc: [EMAIL PROTECTED] Subject:Re: Jar file with

Re: Jar file with JDBC

1999-12-29 Thread David Marshall
ALPESH KOTHARI wrote: > Hi, > > When I added 'System.out.printStackTrace()' it told > while compilation > Method printStackTrace() not found in class > java.io.PrintStream. > > System.out.printStackTrace(); > > I have imported java.io.*; > What else I need to do? > I have included postgresql.jar

Re: Jar file with JDBC

1999-12-29 Thread Matthias Pfisterer
ALPESH KOTHARI wrote: > > Hi, > > When I added 'System.out.printStackTrace()' it told > while compilation > Method printStackTrace() not found in class > java.io.PrintStream. > > System.out.printStackTrace(); It should be: e.printStackTrace(); where e comes from: catch (Exception e) Matthia

Re: Jar file with JDBC

1999-12-29 Thread ALPESH KOTHARI
Hi, When I added 'System.out.printStackTrace()' it told while compilation Method printStackTrace() not found in class java.io.PrintStream. System.out.printStackTrace(); I have imported java.io.*; What else I need to do? I have included postgresql.jar in my jar

RE: Jar file with JDBC

1999-12-28 Thread Peter Mount
On Tue, 28 Dec 1999, Edson Carlos Ericksson Richter wrote: > Try putting the postgresql.jar file in the /jre/lib/ext/ directory... > > Is possible to put the postgresql.jar file into another jar file (my > app.jar) and use them in my app? Not that I know of, other than extracting the files, but

RE: Jar file with JDBC

1999-12-28 Thread Edson Carlos Ericksson Richter
] Cc: [EMAIL PROTECTED] Subject:Re: Jar file with JDBC Hi, > try > { > Class.forName("postgresql.Driver"); > db = DriverManager.getConnection(url, usr, pwd); > st = db.createStatement(); > } > st.executeUpdate(crt); > ^^^

Re: Jar file with JDBC

1999-12-28 Thread Peter Mount
On Mon, 27 Dec 1999, ALPESH KOTHARI wrote: ok, can you run it again for me, but add the following: > 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 > e

Re: Jar file with JDBC

1999-12-27 Thread Dustin Lang
Hi, > try > { > Class.forName("postgresql.Driver"); > db = DriverManager.getConnection(url, usr, pwd); > st = db.createStatement(); > } > st.executeUpdate(crt); > > //While executing this statement it gives nullpointer It looks as though the driver can

Re: Jar file with JDBC

1999-12-27 Thread ALPESH KOTHARI
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 {

Re: Jar file with JDBC

1999-12-27 Thread Peter Mount
On Mon, 27 Dec 1999, ALPESH KOTHARI wrote: > Hello all, > > I have written an application using Java2. It works > fine with JDBC interface. I prepared a jar file of all > the class file as well as 'postgresql.jar'.(I am using > postgresql-6.5 as db). > > At this time it gives null pointer excep

Jar file with JDBC

1999-12-27 Thread ALPESH KOTHARI
Hello all, I have written an application using Java2. It works fine with JDBC interface. I prepared a jar file of all the class file as well as 'postgresql.jar'.(I am using postgresql-6.5 as db). At this time it gives null pointer exception whenever it encounters a first create table statement.