🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Example???

#8006
From: Pramod Subramanyan
Date: Wed, 09 May 2001 02:26
27 lines
1493 bytes
I think the problem is because class Example is not public. This is a funny
little error and some JRE's implement and some don't. I think this could be
your problem.

just modify it to make it
public class Example
. . .
blah - blah - blah

Dmitry Skrizhewsky <dskrizhewsky@mail.ru> wrote in message
news:3af85fe5_1@dnews...
> 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: <3af8a914_2@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!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-08 19:28:03 PST
From: "Pramod Subramanyan" <pramod_sx@rediffmail.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3af85fe5_1@dnews>
Subject: Re: Example???
Date: Wed, 9 May 2001 07:56:28 +0530
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 61.1.24.14
Message-ID: <3af8a914_2@dnews>
X-Trace: dnews 989374740 61.1.24.14 (8 May 2001 19:19:00 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews