|
|
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.
| |
| [Append to This Answer] | |
| 2001-Apr-30 11:46am |
| Previous: |
|
| Next: |
|
| ||||||||
|
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 |
|||||||||||||||||
|
|||||||||||||||||