Re: unable to run a jar file in linux-Plz help me

2007-03-02 Thread Wilhelm Fitzpatrick
details.The exact error message is Exception in thread main java.lang.NoSuchFieldError: class_name: field field_name not found perhaps JVM is saying that he is unbale to recognise the field in the class(an user defined class), But I am surprised how the same jar runs on dos properly. Do you think

unable to run a jar file in linux-Plz help me

2007-03-01 Thread Libran Mail Me
Hi, I am facing a problem while running a jar file (which I created using eclipse v3.2.1 on windows XP.) on linux.The same jar file runs fine on dos, whereas on linux or solaris it returns a weird issue.(XYZ not defined or something like that) I am a beginner in Java. Kindly let me know how I

Re: unable to run a jar file in linux-Plz help me

2007-03-01 Thread Wilhelm Fitzpatrick
On Mar 1, 2007, at 7:30 AM, Libran Mail Me wrote: whereas on linux or solaris it returns a weird issue.(XYZ not defined or something like that) Without knowing what the actual error message is, I don't think there is any way we can help you.

Re: unable to run a jar file in linux-Plz help me

2007-03-01 Thread Robert Meier
lib, I am facing a problem while running a jar file (which I created using eclipse v3.2.1 on windows XP.) on linux. The same jar file runs fine on dos, whereas on linux or solaris it returns a weird issue. (XYZ not defined or something like that) ... not defined ... usually means

Re: unable to run a jar file in linux-Plz help me

2007-03-01 Thread Libran Mail Me
jar runs on dos properly. Do you think it could be anything to do the linux specific libraries? how can it be resolved? Thanks in advance, Lib On 3/1/07, Libran Mail Me [EMAIL PROTECTED] wrote: Hi, I am facing a problem while running a jar file (which I created using eclipse v3.2.1

[beginners question]Howto include (.jar) libraries ?!

2006-08-03 Thread paul asmuth
hey, I'm trying to include a library (e.g the jdom lib - jdom.jar) into a installed blackdown j2se sdk. How can I include libraries, so that they are used when I compile classes ?! I already copied my .jar libs to usr/lib/j2se/1.4/lib and /usr/lib/j2se/1.4/jre, but it didn't worked

Re: [beginners question]Howto include (.jar) libraries ?!

2006-08-03 Thread Sam Varshavchik
paul asmuth writes: hey, I'm trying to include a library (e.g the jdom lib - jdom.jar) into a installed blackdown j2se sdk. How can I include libraries, so that they are used when I compile classes ?! I already copied my .jar libs to usr/lib/j2se/1.4/lib and /usr/lib/j2se/1.4/jre

Re: read file in my own .jar

2006-07-28 Thread Jim C.
phlinux wrote: Hello, java -jar myapplication.jar will launch my java application. I want that this application reads some file from a .jar file. On the internet I found a lot of samples for this job, but of course I need the name of the .jar file. The name of .jar file

read file in my own .jar

2006-07-27 Thread phlinux
Hello, java -jar myapplication.jar will launch my java application. I want that this application reads some file from a .jar file. On the internet I found a lot of samples for this job, but of course I need the name of the .jar file. The name of .jar file is myapplication.jar. But how

jar does not work!

2001-11-17 Thread Hanxue Lee
Hi there, I previously installed JDK 1.2.2 and now I installed JDK 1.4.0 Beta 1 without uninstalling JDK 1.2.2 When I run the jar command, it complains: Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. What is the problem? Thank you in advance Yours truly

Jar command does not work

2001-11-17 Thread Hanxue Lee
Hi there, I previously installed JDK 1.2.2 and now I installed JDK 1.4.0 Beta 1 without uninstalling JDK 1.2.2 When I run the jar command, it complains: Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. What is the problem? Thank you in advance Yours truly

jar does not work!

2001-11-16 Thread Hanxue Lee
Hi there, I previously installed JDK 1.2.2 and now I installed JDK 1.4.0 Beta 1 without uninstalling JDK 1.2.2 When I run the jar command, it complains: Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. What is the problem? Thank you in advance Yours truly

jar does not work!

2001-11-16 Thread Hanxue Lee
Hi there, I previously installed JDK 1.2.2 and now I installed JDK 1.4.0 Beta 1 without uninstalling JDK 1.2.2 When I run the jar command, it complains: Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. What is the problem? Thank you in advance Yours truly

jar does not work!

2001-11-16 Thread Hanxue Lee
Hi there, I previously installed JDK 1.2.2 and now I installed JDK 1.4.0 Beta 1 without uninstalling JDK 1.2.2 When I run the jar command, it complains: Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. What is the problem? Thank you in advance Yours truly

Re: Detecting executable jar files

2001-01-25 Thread Nicolás Lichtmaier
Does anyone have a good binfmt_misc recipe for making "executable jar files" runable? What I'm actually looking for in one which doesn't depend on a ".jar" extension, but this requires being able to tell the difference between an executable jar file and any oth

Re: Detecting executable jar files

2001-01-24 Thread Paul Mclachlan
At 15:35 01 Jan 2001 -0500, Michael Thome wrote: Does anyone have a good binfmt_misc recipe for making "executable jar files" runable? What I'm actually looking for in one which doesn't depend on a ".jar" extension, but this requires being able to tell the difference b

jar in blackdown

2000-11-14 Thread Francisco Gongora
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? Thanks Francisco

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? Sounds

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 available

Re: Some jar utility and .jar questions

2000-09-06 Thread Man Chi Ly
- the .jar file is in the path but javac cannot see the imported classes/interfaces, i.e. are you compiling using make or any other script, or just javac on the command line? import org.xml.sax.XMLReader; import org.apache.xerces.parsers.SAXParser; - I did a "jar -tf xerces.java&qu

Some jar utility and .jar questions

2000-09-04 Thread Bill Halchin
Hello, 1) Can the javac compler extract classes from .jar files if these files are in CLASS_PATH or must I "unjar"? 2) I tried "jar -t xerces.jar" and the jar utility seems to be waiting for more from StdIn?? I also tried "jar -x

Re: Some jar utility and .jar questions

2000-09-04 Thread Joi Ellis
On Mon, 4 Sep 2000, Bill Halchin wrote: Hello, 1) Can the javac compler extract classes from .jar files if these files are in CLASS_PATH or must I "unjar"? Try using the sourcepath option: javac -sourcepath the.jar class.java Don't now if it will work, it's wh

Re: where can i download java40.jar?

2000-08-08 Thread Nathan Meyers
"¸¶·ÐÀÎÇü" wrote: This package includes netscape.javascript, as i know, which makes Applet possible to access JavaScript object. does anyone who knows location of this package? please tell me~! ^^ Install Netscape... you'll find java.jar in its java/classes subdirectory. Nathan

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-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) Matthias

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 in my jar

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

Re: Jar file with JDBC

1999-12-29 Thread Peter Mount
else I need to do? I have included postgresql.jar in my jar file. My classes are all in the same directory. Woops, printStackTrace() is a method of Exception not PrintStream. Thanks for the others who also spotted my mistake :-) Peter -- Peter T Mount [EMAIL PROTECTED] Main Homepage

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

Re: Jar file with JDBC

1999-12-28 Thread Peter Mount
ullpointer exception } catch(IOException e) { System.out.println("Error "+e); System.out.printStackTrace(); } This should give me the class/line that's throwing the exception. The program works fine if I dont prepare the jar file. How are you preparing the jar file? Are you including a

RE: Jar file with JDBC

1999-12-28 Thread Edson Carlos Ericksson Richter
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? Edson Richter -- From: Dustin Lang Sent: terça-feira, 28 de dezembro de 1999 05:10 To: [EMAIL PROTECTED

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

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

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 exception

Re: Jar file with JDBC

1999-12-27 Thread ALPESH KOTHARI
n("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

Re: Jar file with JDBC

1999-12-27 Thread Dustin Lang
ke sure that classes are being only loaded from there and rt.jar. Then jar that directory and see what happens! Another option might be turning on verbose class loading to see what's happening. Both these ideas should help to detect class loading, which by your description sounds like the base of

Jar problem with jdk1.1.8 from IBM

1999-11-17 Thread Andy Choi
Have anyone tried the Jar utility from IBM's jdk1.1.8? For some reason, it refuse to jar up some inner class for me. The class files are generated by jikes and the jar utility from blackdown's 1.1.7 works fine with them. Any idea? Thanks, Andy

Jar file Access to images

1999-10-18 Thread Robert Simmons
Greetings, I cross posted this to about 3 newsgroups and havent gotten a reply yet so I figured I would post here because i need it answered. So dont flame me for posting a general question. I have an application that I intend to package as a jar, with its images in the Jar. How do I construct

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

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

Re: [Q] CLASSPATH, JAR searching, etc

1999-09-21 Thread Daniel Barclay
From: dave madden [EMAIL PROTECTED] Hi. I'm fairly new to Java, but stumbling along quite nicely, thank you; but I'm confused about how the VM finds stuff mentioned in CLASSPATH. Is there an "everything you wanted to know" FAQ, the kind of thing that when you get done reading it, you

Re: [Q] CLASSPATH, JAR searching, etc

1999-09-21 Thread Daniel Barclay
From: dave madden [EMAIL PROTECTED] Hi. I'm fairly new to Java, but stumbling along quite nicely, thank you; but I'm confused about how the VM finds stuff mentioned in CLASSPATH. Is there an "everything you wanted to know" FAQ, the kind of thing that when you get done reading it, you

[Q] CLASSPATH, JAR searching, etc

1999-09-20 Thread dave madden
hat if you give a directory, it'll find .class files there and in appropriate subdirectories, and if you give a .jar file, it'll find classes there, but is there any more to it? Why are there so many .jar files? Why are some in ...java/lib, and others in (and under) ...java/jre/lib? Is it a Bad Idea

READING HTML files from within zip or jar files

1999-07-25 Thread Sterling Moses
Is there a quick and dirty way to read into memory (either String or StringBuffer) the contents of an .html file stored with a .jar or .zip. The java classes reading these files will be stored within the same .zip file. I need to read the .html files without really referencing the name

Re: READING HTML files from within zip or jar files

1999-07-25 Thread Louis Tribble
Sterling Moses wrote: Is there a quick and dirty way to read into memory (either String or StringBuffer) the contents of an .html file stored with a .jar or .zip. The java classes reading these files will be stored within the same .zip file. I need to read the .html files without really

jar symlinks

1999-05-15 Thread pridemor
Can anyone tell me why jar can't deal with symbolic links? I have a directory in my source tree containing graphics files, etc. and I'm building my java classes to a separate, parallel tree. I'd like to just simply create a symbolic link to the graphics directory, but when I run "jar cf fo

Re: anyone got jar working with jdk1.2???

1999-03-18 Thread c . p . lau
lib, or can you send it to me. thank alvin On Wed, 17 Mar 1999 [EMAIL PROTECTED] wrote: hello, am i the only one to have problems with the jar prog of the jdk1.2-prev1 version??? each time i try to packege something i get the message: Can't determine application home Works

Re: anyone got jar working with jdk1.2???

1999-03-18 Thread Jonathan Mark Brooks
On Thu, 18 Mar 1999, [EMAIL PROTECTED] wrote: hi bruno I also use rh5.2, but my jdk1.2 from blackdown doesn't work on my computer. I got a error something like "cannot open libstdc++-libcso.2" (I cannot remember). I checked my "/usr/lib". I really didn't have that. So, can you tell me

Re: anyone got jar working with jdk1.2???

1999-03-18 Thread Bruno Boettcher
I also use rh5.2, but my jdk1.2 from blackdown doesn't work on my also??? i am using debian computer. I got a error something like "cannot open libstdc++-libcso.2" (I cannot remember). I checked my "/usr/lib". I heard that already... you need to set a symlink to an existing library

Re: anyone got jar working with jdk1.2???

1999-03-18 Thread Sorin Lingureanu
You can find rpm versions of jdk1.2 at this url: ftp://tuiasi.ro/pub/os/linux/jdk-1.2/ and I hope soon on ftp://contrib.redhat.com. The packages are the following: jdk-1.2pre-v1-1.i386.rpm jdk-devel-1.2pre-v1-1.i386.rpm jdk-demo-1.2pre-v1-1.i386.rpm They were built on a 2.2.3 running

Re: anyone got jar working with jdk1.2???

1999-03-17 Thread nmeyers
hello, am i the only one to have problems with the jar prog of the jdk1.2-prev1 version??? each time i try to packege something i get the message: Can't determine application home Works fine for me on RH5.2. Nathan - This message

Re: anyone got jar working with jdk1.2???

1999-03-17 Thread Peter T Mount
On Wed, 17 Mar 1999 [EMAIL PROTECTED] wrote: hello, am i the only one to have problems with the jar prog of the jdk1.2-prev1 version??? each time i try to packege something i get the message: Can't determine application home Works fine for me on RH5.2. Same here. In fact

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

jar problems...

1999-03-15 Thread Matthew Hunter
I'm running into problems using jar from the 1.2 pre-release. Oddly enough, the problems are confined to jar itself, the rest of the jdk works fine (at least, the parts I've used). I get the following error: /usr/local/jdk/bin/i686/native_threads/jar: error in loading shared libraries libhpi.so

jar problem...

1999-03-12 Thread Bruno Boettcher
hello, since i pased to jdk 1.2 i have a problem with the jar command everytime i want ot use it to create an archive i get the error : Can't determine application home what's the meaning of this?? And what do i ahve to do to make my archives? ciao bboett

Q: how to layout jar/directories?

1998-12-20 Thread J.P.Lewis
Hello, (a bit off topic, but this is a unix/linux-specific java question) I have several packages that are logically (to me) arranged in the file tree; the CLASSPATH points to their .jars and everything works fine. I would like to combine the class files into a *single jar* to be distributed

jar

1998-11-17 Thread 1a8
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 --

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" wil

Has anyone had a problem with jar tvf using v4a or v5 of the Blackdown JDK?

1998-11-04 Thread Scot P. Floess
I had a problem with the jar command which appears to occur with v4a and v5. Specifically, when I jar cvf my.jar list of files all is well and the jar file is created. However, when I attempt jar tvf my.jar I get an error (sorry, my Linux box is at home, so I do not have the exact error

Re: Has anyone had a problem with jar tvf using v4a or v5 of the Blackdown JDK?

1998-11-04 Thread K.R. Foley
No problems here. "Scot P. Floess" wrote: I had a problem with the jar command which appears to occur with v4a and v5. Specifically, when I jar cvf my.jar list of files all is well and the jar file is created. However, when I attempt jar tvf my.jar I get an error (sorry

Re: Loading images from JAR.

1998-09-07 Thread peter . pilgrim
I wrote: What is the meaning of url.toExportedForm() from image contained in JAR called something like this? systemresources://FILE1/+/images/new.gif I had a lot of trouble reading image file (GIFs) from JARs. I had a long look at the FAQ (www.afu.com) and applied