Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Dec 1999 18:51:29 -0600
From:      Guy Helmer <ghelmer@scl.ameslab.gov>
To:        Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: urgent help with jdk1.1.8 badly needed
Message-ID:  <Pine.SGI.4.20.9912081848270.5935-100000@demios.scl.ameslab.gov>
In-Reply-To: <Pine.GSO.4.10.9912082212490.985-100000@sun33>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 8 Dec 1999, Ariel Burbaickij wrote:

> On Wed, 8 Dec 1999, Guy Helmer wrote:
> 
> > On Wed, 8 Dec 1999, Ariel Burbaickij wrote:
> > 
> > > Have coursework to be done .Deadline is already set.
> > > System run is fbsd3.2.
> > > JDK used 1.1.8
> > > PATH is set propelry
> > > Tried to run javac got large amount of errors of following kind:
> > > "Package java.util not found in import"
> > > "Package java.io   not found in import"
> > > What is wrong ?How could the malfunctioning be mend?
> > 
> > The errors seem to indicate that the java runtime was not able to find the
> > classes archive file (which I believe is located at
> > /usr/local/jdk1.1.8/lib/classes.zip on my system).  Normally, the java
> > startup script (/usr/local/jdk1.1.8/bin/.java_wrapper) appends the path to
> > this file to the CLASSPATH environment variable.
> > 
> > What does "echo $CLASSPATH" report?  What does "which java" report?
>   CLASSPATH is not set so far.Used javac -classpath ./(for current
>   directory) filename.java
>   the whole project resides in one for it dedicated directory).
>   IF i have understood something wrong with CLASSPATH what is the
>   recommended value it should be set to?
>   which java gives as expected /usr/local/jdk1.1.8/java
>   kind regards,
>   Ariel

Is there a reason that "javac filename.java" and then "java
filename" (ie, don't specify the "-classpath .") don't work
correctly?  I've never had to specify the classpath to pick up other
classes in the current directory.

But if you need to specify the classpath on the command line, I think you
may need to include "/usr/local/jdk1.1.8/lib/classes.zip".

Hope that helps,
Guy

Guy Helmer, Ph.D. Candidate, Iowa State University Dept. of Computer Science 
Research Assistant, Ames Laboratory       ---         ghelmer@scl.ameslab.gov
Research Assistant, Dept. of Computer Science   ---   ghelmer@cs.iastate.edu
Teaching Assistant, ComS 652 Distributed Operating Systems
http://www.cs.iastate.edu/~ghelmer



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.4.20.9912081848270.5935-100000>