🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #689

Re: Java Virtual Machine Launcher: Could not find the main class. Program will exit!

#689
From: Owen Green
Date: Fri, 14 Feb 2003 12:52
27 lines
1782 bytes
"John Smith" <lamelyan@yahoo.com> wrote in message
news:3E4C8E63.2030707@yahoo.com...
> I am a novice in both JBuilder and java.
>
> I have just intalled JBuilder 7 Personal on my PC (Windows XP).  I ran
> the Wizard to create a project file .jpx, I also ran Wizard to create
a
> new .java file.  When I push the Run button I get an error message:
Java
> Virtual Machine Launcher: Could not find the main class. Program will
exit!
>
> Why do I get this error and how can I fix it?

Any program needs to be supplied with a class that has a main method
whose signature is

[public] static void main(String[] args)

which is where your app performs all its initialisation.

See http://java.sun.com/docs/books/tutorial/

--
hth
Owen
Technical Details
Message-ID: <3e4ce6ef$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3E4C8E63.2030707@yahoo.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,dd324c31ed9add6,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-02-14 04:57:25 PST
From: "Owen Green" <owen@begonefoulmachine.kennulz.demon.co.uk>
Newsgroups: borland.public.jbuilder.java.api
References: <3E4C8E63.2030707@yahoo.com>
Subject: Re: Java Virtual Machine Launcher: Could not find the main class. Program will exit!
Date: Fri, 14 Feb 2003 12:52:32 -0000
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 62.253.133.169
Message-ID: <3e4ce6ef$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1045227247 62.253.133.169 (14 Feb 2003 04:54:07 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail