🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#690
From: Paul Furbacher TeamB
Date: Fri, 14 Feb 2003 16:06
36 lines
2421 bytes
In <3e4ce6ef$1@newsgroups.borland.com> Owen Green wrote:

> > John Smith" <lamelyan@yahoo.com> wrote in message
> > 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.

Given that, he needs to configure a Runtime Configuration.
In that configuration, one specifies the main class. 
The JBuilder Help (from Help menu) has instructions on 
how to create a Runtime Configuration.  With the Personal
edition, you only get a single configuration per project.
You may access that configuration via Project menu > 
Project Properties menu item > Run tab in dialog.


Paul Furbacher [TeamB]

  Save time, search the archives:
       http://info.borland.com/newsgroups/ngsearch.html
       
  Is it in Joi Ellis's Faq-O-Matic? 
       http://www.visi.com/~gyles19/fom-serve/cache/1.html
 
  Finally, please send responses to the newsgroup only.
  That means, do not send email directly to me.
  Thank you.
Technical Details
Message-ID: <20030214110701026-0500@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.tu-darmstadt.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3E4C8E63.2030707@yahoo.com> <3e4ce6ef$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,dd324c31ed9add6
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-02-14 08:10:01 PST
User-Agent: Halime (MacOSX)/1.0b2
Newsgroups: borland.public.jbuilder.java.api
Message-ID: <20030214110701026-0500@newsgroups.borland.com>
References: <3E4C8E63.2030707@yahoo.com> <3e4ce6ef$1@newsgroups.borland.com>
Content-Type: text/plain; charset="US-ASCII"
Subject: Re: Java Virtual Machine Launcher: Could not find the main class. 
 Program will exit!
From: Paul Furbacher [TeamB] <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.39.232.180
Date: 14 Feb 2003 08:06:42 -0800
X-Trace: newsgroups.borland.com 1045238802 68.39.232.180 (14 Feb 2003 08:06:42 -0800)
Lines: 36
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.tu-darmstadt.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail