🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7848

Re: Example???

#7848
From: David Newman
Date: Fri, 18 May 2001 14:29
22 lines
1496 bytes
Also review case differences between the class name and the File name.
Windows will find the file if case is different (Example.java vs
example.java) but javac cares. Also use the proper case when using javac
and java commands.
David Newman

Dmitry Skrizhewsky wrote:

> Hi,
> I'm trying to run such a simple program (java Example),
>
> class Example {
>   // Your program begins with a call to main().
>   public static void main(String args[]) {
>     System.out.println("This is a simple Java program.");
>   }
> }
>
> but
> Exception in thread "main" java.lang.NoClassDefFoundError: Example
>
> What is wrong?
Technical Details
Message-ID: <3B0531C7.FA14C05A@cyburban.com>
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3af85fe5_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4838aaf1338509e0
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-18 07:40:30 PST
Message-ID: <3B0531C7.FA14C05A@cyburban.com>
Date: Fri, 18 May 2001 10:29:27 -0400
From: David Newman <den@cyburban.com>
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Example???
References: <3af85fe5_1@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 209.51.175.68
X-Trace: dnews 990196166 209.51.175.68 (18 May 2001 07:29:26 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews