🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.help
Article #26

Re: Help: This simple applet won't run.

#26
From: Mr. Tines
Date: Sat, 07 Aug 1999 00:00
33 lines
2060 bytes
###

On Sat, 07 Aug 1999 14:50:00 +1200, in <37AB9ED7.B0213FC6@tnetnz.com>
          Peter <peter52@tnetnz.com> wrote.....

>
> Hi, i have installed jdk1.2 that comes with the
> book " Just Java 2" on WIN95. I run java
> from MS-Dos prompt.
>
> I can run the demo code myframe.java but when i
> try to execute the simple code graf.java from p.561
> of " Just Java 2", i got the following error message
> ( compilation is OK):
>
> c:\jdk1.2\bin\java graf
>
> Exception in thread " main " java.lang.NosuchMethod Error: main

You are trying to run you applet as if it were an
application.  Applications have a public static void main(String[] args)
method where execution starts.  Applets are embedded in
HTML pages and invoked through the browser.

-- PGPfingerprint: BC01 5527 B493 7C9B  3C54 D1B7 248C 08BC --
 _______ {pegwit v8 public key =581cbf05be9899262ab4bb6a08470}
/_  __(_)__  ___ ___     {69c10bcfbca894a5bf8d208d001b829d4d0}
 / / / / _ \/ -_|_-<             http://www.ravnaandtines.com/
/_/ /_/_//_/\__/___/@ravnaandtines.com         PGP key on page

### end pegwit v8 signed text
31ad593d6b29606a8d7d04f35f10eb0c31346952b869e69911f52656bf90
14f3b75c14f40ad7b1089654008f547afd428eae4d1db18d50700450826c
Technical Details
Message-ID: <08071999093636umw@ravnaandtines.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37AB9ED7.B0213FC6@tnetnz.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,7cafe47c609da7a7
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 113ae9,7cafe47c609da7a7
X-Google-Attributes: gid113ae9,public
X-Google-Thread: f5d71,7cafe47c609da7a7
X-Google-Attributes: gidf5d71,public
From: Mr. Tines <tines@ravnaandtines.com>
Subject: Re: Help: This simple applet won't run.
Date: 1999/08/07
Message-ID: <08071999093636umw@ravnaandtines.com>
X-Deja-AN: 510243680
X-Mail2News-Path: news.demon.net!finch-post-10.mail.demon.net!windsong.demon.co.uk
References: <37AB9ED7.B0213FC6@tnetnz.com>
X-Trace: mail2news.demon.co.uk 934119305 mail2news:3622 mail2news mail2news.demon.co.uk
Organization: Ravna&Tines
Newsgroups: comp.lang.java.help,comp.lang.java,aus.computers.java
X-Complaints-To: abuse@demon.net