From owner-freebsd-java Tue Jun 9 05:50:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA11437 for freebsd-java-outgoing; Tue, 9 Jun 1998 05:50:53 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from cyclone.degnet.baynet.de (cyclone.degnet.baynet.de [194.95.214.129]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA11345 for ; Tue, 9 Jun 1998 05:50:34 -0700 (PDT) (envelope-from malte@webmore.com) Received: from neuron.webmore.com (unverified [194.95.214.179]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Tue, 09 Jun 1998 14:50:33 +0200 Received: from neuron.webmore.de (malte@webmore.com) by neuron.webmore.com (8.8.8/8.8.8) with ESMTP id OAA00677; Tue, 9 Jun 1998 14:45:38 +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: Tue, 09 Jun 1998 14:45:38 +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 >From /usr/local/jdk1.1.5/bin/java NO_DOT_LIST="appletviewer" DEFAULT_CLASSPATH="." for excluded in ${NO_DOT_LIST}; do if [ ${excluded} = ${progname} ]; then DEFAULT_CLASSPATH=""; fi done 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 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. Malte. On 09-Jun-98 Michael Gratton wrote: > > Hi there, > > Can someone tell me what the default classpath is when executing > java/bin/java? > More specifically, is the current directory (./ or whatever) in the default > classpath? > > I'm getting "Can't find class" errors even though the specified class is in > the > current directory: > > challenger> ls > Beanbag.class > challenger> java Beanbag > Can't find class Beanbag > challenger> > > 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: 09-Jun-98 Time: 14:22:44 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message