message is
"Exception in thread "main" java.lang.NoSuchFieldError: :
field 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 it could be anyth
Hi,
Sorry for not giving the exact details.The exact error message is
"Exception in thread "main" java.lang.NoSuchFieldError: :
field 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
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 ... usu
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.
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
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, b
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
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 is
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 to
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 ja
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 a
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 o
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 u
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
hrc
> - I echo'd $CLASSPATH
> - 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.
Dear Man Chi Ly and others,
I now have the CLASSPATH:
CLASSPATH=$HOME/FTP/xerces-1_1_3/xerces.jar (FTP is a directory
I put everything I download on Linux)
export CLASSPATH
- I did a source on .bashrc
- I echo'd $CLASSPATH
- the .jar file is in the path
but javac cannot se
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 w
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"?
javac is like any other java program. If it is in the CLASSPATH (no
underscore) it can be found.
&
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"?
yes, i.e.
CLASSPATH=some/dir/classes:other/dir/xerces.jar
>
>2) I tried &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
"¸¶·ÐÀÎÇü" 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.
Natha
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~! ^^
==
±×°ÍÀº ¼Ò¸®¾ø´Â ¾Æ¿ì¼º...
³ªÀÇ ¿µÈ¥ Àú ±íÀº°÷¿¡¼ºÎÅÍ
Hello,
I get the following eror when I try to jar up a set of files I just
javac'ed:
java.lang.NoClassDefFoundError: sun/tools/jar/Main
at java.lang.Throwable.(Throwable.java:40)
at java.lang.Error.(Error.java:21)
at java.lang.LinkageError.(LinkageError.ja
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
ace();
>
> I have imported java.io.*;
> What 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
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
eed to do?
> I have included postgresql.jar in my jar file.
> My classes are all in the same directory.
>
> Thanking You,
> Alpesh
>
Alpesh,
Postgresql.jar has nothing to do with it.
As the compiler says, there is no method printStackTrace() in
java.io.printStream.
Perhaps wha
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
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 extracti
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
ment it gives nullpointer
> 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.
irectory, then set your path variables and make 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 loadin
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
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).
>
>
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
I just installed jdk1.2.2 on my redhat 5.2 system. I tried to unjar a
file. First I had to make some links to my bin directory to get rid of
some errors. After doing that, I now get:
% jar -xvf weka-3-0.jar
/bin/i386/native_threads/jar: error in loading shared libraries
libhpi.so: cannot open
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?
Th
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.)
>
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.
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 a
dave madden wrote:
> ...
> 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 to unpack them all into a
> master tree, then make a giant .jar containing
> 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
> 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
sked?
I guess that 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/j
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 .
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 of
the
Amlan Saha wrote:
>
> Hi people
>
> On RH 6.0 when I try to create a .jar file out of my classes, I get
> the following - (I used jar cf my.jar *.class)
>
> java.lang.NoClassDefFoundError: sun/tools/jar/Main
> at java.lang.Throwable.(Throwable.java:40)
>
Amlan Saha <[EMAIL PROTECTED]> writes:
> On RH 6.0 when I try to create a .jar file out of my classes, I get
> the following - (I used jar cf my.jar *.class)
>
> java.lang.NoClassDefFoundError: sun/tools/jar/Main
> at java.lang.Throwable.(Throwable.java:40)
>
Hi people
On RH 6.0 when I try to create a .jar file out of my classes, I get
the following - (I used jar cf my.jar *.class)
java.lang.NoClassDefFoundError: sun/tools/jar/Main
at java.lang.Throwable.(Throwable.java:40)
at java.lang.Error.(Error.java:21)
at
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
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 RedHa
> 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
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 tel
hat
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
Peter T Mount writes:
> 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
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
> > applic
> 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
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
ciao
bboett
==
acount at earthling net
hello,
don't seem to get help about this in the news
i just upgraded my jdk to the linux-jdk1.2-pre1 and now jar doen't work anymore
...
all i get is:
jar -cvf jTrader.jar jTrader
Can't determine application home
what's going wrong h
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
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?
c
Does the jar command work under the Linux port for JDK?
When I use the command, this is what I get:
$ jar
java.lang.ClassNotFoundException: sun/tools/jar/Main
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
I've seen this before... caused by a bad jar file generated by my script;
try listing the contents of the first jar, they may not be what you expect...
mine were showing up with an 'extra' package, such that my class "foo.bar"
was in the jar file as "builddir.foo.ba
Hi,
I have a strange problem using rmi that is somehow related
to .jar files. This is 1.1.7a on Redhat intel 5.1.
Here's what seems to happen:
- remove all .class & .jar files
- make (compiles and then produces a .jar file)
- start rmiregistry
- run the server, get t
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.
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
--
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
--
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
>
> all is well and the jar file is created. However, when I attempt
>
> jar tvf my.jar
>
I had a problem with the jar command which appears to occur with v4a and
v5. Specifically, when I
jar cvf my.jar
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). Anyway, the
On Mon, Sep 07, 1998 at 11:06:22AM +0100, [EMAIL PROTECTED] wrote:
> 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
Here is a little class that I wrote that might be helpful . . . enjoy.
Carl
[EMAIL PROTECTED] wrote:
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
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.co
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 keep get a stack trace:
Have a FuNkiNG good time
Peter
--
import java.std.disclaimer
81 matches
Mail list logo