From owner-freebsd-java Sun Apr 19 15:22:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA25033 for freebsd-java-outgoing; Sun, 19 Apr 1998 15:22:14 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from helmholtz.salk.edu (helmholtz.salk.edu [198.202.70.34]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA25016 for ; Sun, 19 Apr 1998 22:22:09 GMT (envelope-from bartol@salk.edu) Received: from cole.salk.edu (cole [198.202.70.113]) by helmholtz.salk.edu (8.7.5/8.7.3) with SMTP id PAA16051; Sun, 19 Apr 1998 15:22:03 -0700 (PDT) Date: Sun, 19 Apr 1998 15:22:01 -0700 (PDT) From: Tom Bartol To: Adrian Colley cc: ritter@orbysis.com, freebsd-java@FreeBSD.ORG Subject: Re: Can't find class blah.class In-Reply-To: <87532138.fnord546344@three.serpentine.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thanks for the extremely rapid response (and please excuse my extremely slow "thankyou"). The problem was indeed an anomalous "package demos;" statement at the top of the program. This must have been a vestigial piece of code left over from the authors' package tree. Commenting out this statement fixed the code and it now runs perfectly using: "java bounce" as it should. I now have an excellent java development environment in which to design my project. Thanks to Sun and the FreeBSD team for such a wonderful set of tools!!! Tom On Fri, 17 Apr 1998, Adrian Colley wrote: > tb> java bounce > tb> Can't find class bounce > > Java will look for "./bounce.class", but if it doesn't contain a > definition for "bounce" ("some.packagename.bounce" and "Bounce" are > possible red herrings) it will fail abysmally. > > Sometimes, a missing superclass/interface/declared component class > will cause a class to fail to load (you should be getting an > ExceptionInInitializer error, but the provided error message isn't > helpful). > > All this may be obvious to you; and you might have found a real bug. > Make sure CLASSPATH is set to "." and use "javap bounce" in the > correct directory. If you get the same error, there's probably > something wrong with the classfile. > > --adrian. > RMI Team > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message