(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) IDE/Editor :
I have a protected class with a public static void main() method. In JBuilder 4, I can right-click on the class node and run the application using this class's main(). In JBuilder 6, the class node's context menu doesn't have a Run menu item. Why not?
I believe the answer is that the Java Language Specification says that only public classes with public static void main(String[] args) methods may be used as runtime launch points. JBuilder 4 erronously accepted any class with a public static void main(String[] args) no matter what the class's topmost protection level was.

JBuilder 6 now correctly honors the public class/public main requirements and no longer displays the Run menu items for non-public classes.

I don't know which behavior JBuilder 5 displays.
2002-May-23 10:36am gyles19@visi.com

[Append to This Answer]
2002-May-23 10:36am
Previous: (Answer) I'm typing in the source pane, and the editor cursor is to the left of the characters I'm typing. When I click the mouse past the end of a line, the cursor is several characters to the left of the last character. What's wrong?
Next: (Answer) The caret in the editor does not line up with the characters.
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=406
[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 ]