Re: jdk1.1 problmes

2000-05-07 Thread Robert Varga


On Sat, 6 May 2000, Jan Pfeifer wrote:

 Chris Gray writes:
 
   On Sat, May 06, 2000 at 01:14:30PM -0300, Jan Pfeifer wrote:
I'm trying to execute a HelloWorld program in java,
but after compiling it, when running, it segment faults:

   
 
 
 
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.
   
 
 they did!! Without the CLASSPATH definition (unset CLASSPATH) it
 worked just fine, thanks Chris!
 
Of course they did.

If you set a classpath, then the default content of the classpath will be
ignored and you will be able to use only what's in the classpath. Of
course none of your programs will be found in the jdk's classes.zip hence
the problem.

Robert Varga


jdk1.1 problmes

2000-05-06 Thread Jan Pfeifer
hi,

I'm trying to execute a HelloWorld program in java,
but after compiling it, when running, it segment faults:

$ java -v HelloWorld.class 
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

does anybody has any idea about what is wrong ?

I'm using basically the woody distribution, with

jdk1.1(-dev) 1.1.8v1-2
XFree86 4.0

ahn, and:

CLASSPATH=/usr/lib/jdk1.1/lib/classes.zip 
JAVA_HOME=/usr/lib/jdk1.1

ps.: I tried the included documentation, but nothing seemed to
mention this kind of problem. Am I doing something wrong ?


Re: jdk1.1 problmes

2000-05-06 Thread Chris Gray
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.


Re: jdk1.1 problmes

2000-05-06 Thread Jan Pfeifer
Chris Gray writes:

  On Sat, May 06, 2000 at 01:14:30PM -0300, Jan Pfeifer wrote:
   I'm trying to execute a HelloWorld program in java,
   but after compiling it, when running, it segment faults:
   
  



   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.
  

they did!! Without the CLASSPATH definition (unset CLASSPATH) it
worked just fine, thanks Chris!

:)

jan