Re: jdk1.1 problmes
On Sat, May 06, 2000 at 01:14:30PM -0300, Jan Pfeifer wrote:
> hi,
>
> I'm trying to execute a "HelloWorld" program in java,
> but after compiling it, when running, it segment faults:
>
> $ java -v HelloWorld.class
This is a problem in itself. You have to run
$ java HelloWorld
without the '.class' at the end. One of java's stupider attributes.
> Loading java/lang/Object.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/io/Serializable.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/lang/Cloneable.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/lang/Class.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/lang/String.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/lang/System.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/lang/Void.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/lang/Boolean.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/lang/Byte.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/lang/Number.class(/usr/lib/jdk1.1/lib/classes.zip)
> Loading java/lang/Character.class(/usr/lib/jdk1.1/lib/classes.zip)
> Segmentation fault
It could be that you are missing some classes. Maybe you should
re-install the deb.
>
> does anybody has any idea about what is wrong ?
>
> I'm using basically the "woody" distribution, with
>
> jdk1.1(-dev) 1.1.8v1-2
This is working for me.
> XFree86 4.0
This should not be affecting anything.
>
> ahn, and:
>
> CLASSPATH=/usr/lib/jdk1.1/lib/classes.zip
> JAVA_HOME=/usr/lib/jdk1.1
I haven't got this in my env. Maybe you should unset them
(CLASSPATH=""; JAVA_HOME=""), but they shouldn't be hurting anything
either.
>
> ps.: I tried the included documentation, but nothing seemed to
> mention this kind of problem. Am I doing something wrong ?
Try it without the .class at the end and report back.
Cheers,
Chris
--
pick, pack, pock, puck: like drops of water in a fountain falling
softly in the brimming bowl.
Reply to: