From owner-freebsd-java Wed Jun 10 02:58:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA15630 for freebsd-java-outgoing; Wed, 10 Jun 1998 02:58:48 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from cyclone.degnet.baynet.de (www.degnet.baynet.de [194.95.214.129]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA15603 for ; Wed, 10 Jun 1998 02:58:43 -0700 (PDT) (envelope-from malte@webmore.com) Received: from neuron.webmore.com (unverified [194.95.214.174]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Wed, 10 Jun 1998 11:59:49 +0200 Received: from neuron.webmore.de (malte@webmore.com) by neuron.webmore.com (8.8.8/8.8.8) with ESMTP id LAA00822; Wed, 10 Jun 1998 11:54:48 +0200 (CEST) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Wed, 10 Jun 1998 11:54:48 +0200 (CEST) Reply-To: malte@webmore.com From: Malte Lance To: Michael Gratton Subject: RE: "Can't find class" errors Cc: freebsd-java@FreeBSD.ORG Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 09-Jun-98 Michael Gratton wrote: > > On 09-Jun-98 Malte Lance wrote: >>From /usr/local/jdk1.1.5/bin/java >> >> [snip] >> >> This means, if you are calling appletviewer, "." is NOT in your CLASSPATH. >> Otherwise it will be if you set CLASSPATH in your environment to include it. > > Yep, that's fine, but I'm referring to java, not appletviewer. I don't have > the > source on me here, so can someone have a look and tel me what the default > classpath used bin/java? /usr/local/jdk1.1.5/bin/java is the wrapper for the java-bin. View it on your own: DEFAULT_CLASSPATH="." .. CLASSPATH="${CLASSPATH:-${DEFAULT_CLASSPATH}}" if [ -z "${CLASSPATH}" ] ; then CLASSPATH="$JAVA_HOME/classes:$JAVA_HOME/lib/classes.jar:$JAVA_HOME/lib/rt.j ar:$JAVA_HOME/lib/i18n.jar:$JAVA_HOME/lib/classes.zip" else CLASSPATH="$CLASSPATH:$JAVA_HOME/classes:$JAVA_HOME/lib/classes.jar:$JAVA_HO ME/lib/rt.jar:$JAVA_HOME/lib/i18n.jar:$JAVA_HOME/lib/classes.zip" fi That means, if you did not set CLASSPATH at all in your environment, "." will be in your CLASSPATH, as long as you do not call the applet with appletviewer (=> call your applet with "java" and "." will be in your CLASSPATH if your CLASSPATH is not set in your environment). If you set CLASSPATH to something in your environment, it depends on you, whether you included "." in your CLASSPATH or not. In any case $JAVA_HOME/classes:$JAVA_HOME/lib/classes.jar: $JAVA_HOME/lib/rt.jar:$JAVA_HOME/lib/i18n.jar: $JAVA_HOME/lib/classes.zip will be appended to your CLASSPATH. JAVA_HOME defaults to the install-directory of your jdk-1.1.5 Malte > > Thanks, > Mike. > > * Mike Gratton - mike@vee.net > ! "I'd rather be anywhere doing anything" > $ http://www.vee.net/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message ---------------------------------- E-Mail: Malte Lance Date: 10-Jun-98 Time: 10:37:07 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message