Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 51323 invoked from network); 16 Sep 2004 07:43:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Sep 2004 07:43:10 -0000 Received: (qmail 47135 invoked by uid 500); 16 Sep 2004 07:42:07 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 46938 invoked by uid 500); 16 Sep 2004 07:42:05 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 46924 invoked by uid 99); 16 Sep 2004 07:42:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [212.227.126.176] (HELO moutng.kundenserver.de) (212.227.126.176) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 16 Sep 2004 00:42:04 -0700 Received: from [212.227.126.200] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1C7qu2-00014d-00 for tomcat-user@jakarta.apache.org; Thu, 16 Sep 2004 09:42:02 +0200 Received: from [172.23.4.144] (helo=config17.kundenserver.de) by mrvnet.kundenserver.de with esmtp (Exim 3.35 #1) id 1C7qu1-00033V-00 for tomcat-user@jakarta.apache.org; Thu, 16 Sep 2004 09:42:01 +0200 Received: from www-data by config17.kundenserver.de with local (Exim 3.35 #1 (Debian)) id 1C7qu1-0001oa-00 for ; Thu, 16 Sep 2004 09:42:01 +0200 To: =?iso-8859-1?Q?Tomcat_Users_List?= Subject: =?iso-8859-1?Q?Re:_RE:_A_little_offbeat_question?= From: Message-Id: <5732322$1095320035414941e3330980.59036598@config17.schlund.de> X-Binford: 6100 (more power) X-Originating-From: 5732322 X-Mailer: Webmail X-Routing: DE X-Received: from config17 by 195.63.74.27 with HTTP id 5732322 for tomcat-user@jakarta.apache.org; Thu, 16 Sep 2004 09:40:02 +0200 Content-Type: text/plain; charset="iso-8859-1" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Priority: 3 Date: Thu, 16 Sep 2004 09:40:02 +0200 X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:@172.23.4.144 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N But the exception says "NoClassDefFoundError: HelloWorld/class". So where does the /class come from?? In any case don't bother with classpath environment, but (with the class in your current directory) simply run 'java -cp . HelloWorld'. Would really surprise me if it didn't work. John Najarian schrieb am 16.09.2004, 09:32:18: > That's what I did. When I was first learning Java that 1 bit me. > > -----Original Message----- > From: martin@naxos-software.de [mailto:martin@naxos-software.de] > Sent: Thursday, September 16, 2004 12:24 AM > To: Tomcat Users List > Subject: Re: A little offbeat question > > > Try running 'java ... HelloWorld' instead of 'java ... HelloWorld.class' > :-) > > Regards, > Martin > > John Najarian schrieb am 16.09.2004, > 09:00:52: > > I tried to run a program I thought would but it doesn't. > > > > This is on a windows XP platform. > > > > Everything compiled well but I get this error: > > > > Exception in thread "main" java.lang.NoClassDefFoundError: > HelloWorld/class > > > > > > > > So I went back and tried a no brainer 'HelloWorld' This is the code. > > > > /** > > > > * The HelloWorld class implements an application that > > > > * displays "Hello World!" to the standard output. > > > > */ > > > > public class HelloWorld { > > > > public static void main(String[] args) { > > > > // Display "Hello World!" > > > > System.out.println("Hello World!"); > > > > } > > > > } > > > > > > > > It compiles but I get the same error. > > > > I check my environment variables and mine are > > > > JAVA_HOME c:\j2sdk1.4.2_03 > > > > PATH > > > C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3 > > 2;%SystemRoot%;%SystemRoot%\system32\WBEM > > > > > > > > Any ideas? > > > > > > > > Thanks in advance > -- > Martin Schaefer > NAXOS Software Solutions GmbH i.G. > Herrenstr. 1 > 69502 Hemsbach > Germany > > Phone:+49 (0) 6201 49298-2 > Mobile: +49 (0) 172 6269246 > Fax: +49 (0) 6201 49298-1 > Mail: martin.schaefer@naxos-software.de > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org -- Martin Schaefer NAXOS Software Solutions GmbH i.G. Herrenstr. 1 69502 Hemsbach Germany Phone:+49 (0) 6201 49298-2 Mobile: +49 (0) 172 6269246 Fax: +49 (0) 6201 49298-1 Mail: martin.schaefer@naxos-software.de --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org