(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) IDE/Editor :
I'm trying to run my first application and JBuilder gives me this dialog box, or I get an error "Can not find main method" or "Unable to start runtime due to incomplete configuration."
When JBuilder runs your application, it's building a java command just like you would in a MSDos command window or at a unix shell prompt. The 'java' command requires that you provide the name of the class which contains the main() method you wish to execute.

In the same way, JBuilder needs to provide the name of the class with your application's main() method, but it isn't going to guess for you, even when there is only one class in the whole project.

In the Project Properties/Run dialog there is a "Main class" field with a "..." button to the right. Click that button and you'll get a package/class browser. Find your class in that browser and select it. Save the settings.

JBuilder should now be able to launch your application, because now it knows what to put on the 'java' command.
2001-Mar-13 9:25am gyles19@visi.com

[Append to This Answer]
2001-Apr-30 11:46am
Previous: (Answer) CodeInsight isn't working!
Next: (Answer) I have acquired a 3rd party package/jar. How do I add it to my project?
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=94
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]