Re: jar in blackdown

2000-11-14 Thread Kristian Soerensen
Hi On Tue, 14 Nov 2000, Francisco Gongora wrote: > Hello: > We are trying to run a jar file in Linux with jdk of Blackdown: > > java -jar Jarfile.jar > > but we have error saying -jar is not valid option. Is there any way to run > a .jar using jdk of Blackdown? -jar is availab

Re: jar in blackdown

2000-11-14 Thread Nathan Meyers
On Tue, Nov 14, 2000 at 03:42:06PM -0500, Francisco Gongora wrote: > Hello: > We are trying to run a jar file in Linux with jdk of Blackdown: > > java -jar Jarfile.jar > > but we have error saying -jar is not valid option. Is there any way to run > a .jar using jdk of Blackdown?

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

Re: Jar file Access to images

1999-10-18 Thread schen
On Mon, 18 Oct 1999, Robert Simmons wrote: > I have an application that I intend to package as a jar, with its images in > the Jar. How do I construct a URL object to load those images into IconImage > instances from the LOCAL jar file (ie, the file the program is running in.) > Further, is there

Re: Jar file Access to images

1999-10-18 Thread Ted Neward
Rob-- Check out URLClassLoader, and email me privately if you don't get it from there. URLClassLoader allows you load classes, resources and other "stuff" from .jar, .zip, or subdirectory (depending on the URL(s) you pass in, of course) without modification to your client code. Does that solve t

Re: jar problems...

1999-03-16 Thread Myles Bogner
Using Linux_JDK_1.2_pre-release-v1 for Intel, glibc, I also am having a problem with jar. My only other issue with the release is with the fonts, but I have yet to try the mailing list fixes. With 1.1.7, I can make a jar file with a manifest containing over 200 classes. On the same files, howev

Re: jar

1998-11-17 Thread Michael Sinz
On Tue, 17 Nov 1998 13:07:03 -0500 (EST), [EMAIL PROTECTED] wrote: > >Is anyone else experiencing trouble with jar? > >When I run jar -t jarfile.jar > >it just hangs... > >I've tried it on more than one jar file Well, you need to use jar -tf jarfile.jar Doing just "jar -t" will tel

Re: jar

1998-11-17 Thread vipin agrawal
You might need to specify the f option also as in - jar -tvf jarfile.jar vipin [EMAIL PROTECTED] wrote: Is anyone else experiencing trouble with jar? When I run jar -t jarfile.jar it just hangs... I've tried it on more than one jar file __m --