aspose file tools*
The moose likes Beginning Java and the fly likes NetBeans: Passing parameters to main( ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "NetBeans: Passing parameters to main( )" Watch "NetBeans: Passing parameters to main( )" New topic
Author

NetBeans: Passing parameters to main( )

Arthur Blair
Ranch Hand

Joined: Sep 20, 2005
Posts: 71
I am using NetBeans version 4.1 and I want to pass some parameters to the main() method of one of my classes. My problem is that when I right click on the class in the folder tree, it runs so fast that I don't have time to enter the parameters.

I understand that you can set parameters beforehand by rightclicking on the project the selecting Properties >> Run >> Arguements. But this only works when the class is set as the Main class for the entire project. However, when you run the entire project NetBeans tries to compile everything, and won't run if some classes won't compile. I don't want to test everything yet, just a specific class.

Is there a another way to enter parameters into main using NetBeans?
[ November 25, 2005: Message edited by: Arthur Blair ]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14150
    
  18

Netscape?? Do you mean NetBeans?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Arthur Blair
Ranch Hand

Joined: Sep 20, 2005
Posts: 71
...NetBEANS.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NetBeans: Passing parameters to main( )