*
The moose likes IDEs, Version Control and other tools and the fly likes Reg:   How can i know application starting poing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Reg:   How can i know application starting poing" Watch "Reg:   How can i know application starting poing" New topic
Author

Reg: How can i know application starting poing

rama rajesh
Greenhorn

Joined: Jun 22, 2010
Posts: 28
Hi ,

i am new to IDE tools. but i have knowledge on java programming.
I have to work on a project which is in NETBEANS . project configured and no errors while building the application.

HOW CAN I KNOW starting point of the application??
(in the given project, Few classes contains the main methods). so i can't identify which is the starting point for this application.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14114
    
  16

If it's a normal stand-alone application (not a library or something like that), then you should have a class with a public static void main(String[] args) method somewhere, which can be used as the starting point of the application.

It's probably better to ask people who know more about the specific project you're trying to use.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

I think that you can define a "default" class for the project and that class' main() method is what gets called. Alternately, you can often right-click on a specific class and say to run it, in which case its main() method gets called. This is based on my experiences with Eclipse, I suspect that NetBeans is similar.

Just now verified this behavior in NetBeans 6.9. For the "default" class, look in the Projects Properties, the Run entry, Main Class.


JBoss In Action
rama rajesh
Greenhorn

Joined: Jun 22, 2010
Posts: 28
There is a script, on the start of the script it will invoke a java class and after that remaining classes are invoked .
my application contains diffrent classes with main methods.
when i asked my senior, he told me there are different scripts which will initiate different java classes.
same application is used in different scenarios.

thanks a lot for your help.

 
jQuery in Action, 2nd edition
 
subject: Reg: How can i know application starting poing