Discussion:
can't run my program?
Michael, Jason
2006-05-25 13:23:46 UTC
Permalink
Guys,



I just upgraded from Netbeans 4.X. I'm using an ant build script which
doesn't have a "run" target - I don't know if it's supposed to so that's
immaterial. What I'm asking is this: in former versions of Netbeans, I
could identify which class in the Project was the Main Class, so that
when I clicked the green "run" arrow in the toolbar it would build the
project and run it, starting in the Main Class. Netbeans 5 doesn't
allow me to do that. I can only specify the Main Project - which I do
not understand in this context. Worse, when I navigate to the files in
the files tab and right click, "run file" is greyed out, so I can't run
it from their either. I can run it with the java binary from the
command line, however.



What am I missing?



Your help would be sincerely appreciated.



Jason L Michael

(817) 358-6307

Client Service Supervisor

ADP Dealer Services - Team Truck

4001 Airport Freeway Suite 400

Bedford, TX 76021





This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.
Marc Farrow
2006-05-25 13:32:13 UTC
Permalink
Right click the project name in the Project Explorer and then go to
Properties. In the dialog box in the left frame click RUN. Here you can
specify the Main Class and command line arguments, etc. Then you can press
SHIFT F6 to run.
Post by Michael, Jason
Guys,
I just upgraded from Netbeans 4.X. I'm using an ant build script which
doesn't have a "run" target – I don't know if it's supposed to so that's
immaterial. What I'm asking is this: in former versions of Netbeans, I
could identify which class in the Project was the Main Class, so that when I
clicked the green "run" arrow in the toolbar it would build the project and
run it, starting in the Main Class. Netbeans 5 doesn't allow me to do
that. I can only specify the Main Project – which I do not understand in
this context. Worse, when I navigate to the files in the files tab and
right click, "run file" is greyed out, so I can't run it from their either.
I can run it with the java binary from the command line, however.
What am I missing?
Your help would be sincerely appreciated.
Jason L Michael
(817) 358-6307
Client Service Supervisor
ADP Dealer Services - Team Truck
4001 Airport Freeway Suite 400
Bedford, TX 76021
------------------------------
This message and any attachments are intended only for the use of the
addressee and may contain information that is privileged and confidential.
If the reader of the message is not the intended recipient or an authorized
representative of the intended recipient, you are hereby notified that any
dissemination of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by e-mail
and delete the message and any attachments from your system.
--
Marc Farrow
Loading...