[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: jdk1.1 problmes




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


Reply to: