Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 1497 invoked from network); 1 Nov 2007 17:15:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2007 17:15:18 -0000 Received: (qmail 90580 invoked by uid 500); 1 Nov 2007 17:13:49 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 90556 invoked by uid 500); 1 Nov 2007 17:13:49 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 90539 invoked by uid 99); 1 Nov 2007 17:13:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 10:13:49 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [204.127.225.96] (HELO alnrmhc16.comcast.net) (204.127.225.96) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 17:13:49 +0000 Received: from [192.168.1.101] (c-68-50-0-179.hsd1.va.comcast.net[68.50.0.179]) by comcast.net (alnrmhc16) with ESMTP id <20071101171325b160072ptke>; Thu, 1 Nov 2007 17:13:26 +0000 Message-ID: <472A092F.3060001@christopherschultz.net> Date: Thu, 01 Nov 2007 13:13:19 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: CLASSPATH, .jar files, packages, and so forth References: <3E47D20FD1918B48AC434AA83B5752960148A602@usplm215.amer.corp.eds.com> <3E47D20FD1918B48AC434AA83B5752960148A607@usplm215.amer.corp.eds.com> <003501c81c49$f9bc59c0$0300000a@animal> <3E47D20FD1918B48AC434AA83B5752960148A608@usplm215.amer.corp.eds.com> <4729EFC4.8050402@christopherschultz.net> <3E47D20FD1918B48AC434AA83B5752960148A609@usplm215.amer.corp.eds.com> In-Reply-To: <3E47D20FD1918B48AC434AA83B5752960148A609@usplm215.amer.corp.eds.com> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ivan, Mann, Ivan H wrote: > Not being able to find the class may mean that it can't find the jar > file and it may mean that it can find the jar file but the package and > or directory is not done right. Probably. > The applet specified here appears in the web browser just fine. > archive="schedule.jar" > width=600 > height=300> > Okay: that means that the JAR file itself is being loaded properly (unless you happen to have class files laying around in the webapp's deployment directory, outside of WEB-INF: make sure you aren't doing that; I'm pretty sure that archive="...." indicates that all code should come from the specified JAR and classes will not be requested from the server directly). > The > applet tries to access the BuildSchedule class in response to a menu > item and the exception is not thrown until then. > > java.lang.NoClassDefFoundError: applet/schedule/BuildSchedule What do you get when you run: $ unzip -v webapps/schedule.jar > The jar file is located in .../webapps/schedule.jar, which is where the > applet directory in the cod parameter is. Unless you have written this incorrectly, scheduler.jar shouldn't be in "webapps/scheduler.jar"... it should be in webapps/[yourappname]/scheduler.jar. And your applet tag should look like this: