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
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.*;
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
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
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
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
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
]
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);
> ^^^
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
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
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
{
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
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.
13 matches
Mail list logo