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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
"¸¶·ÐÀÎÇü" 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--
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
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
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
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
61 matches
Mail list logo