Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NetBeans: Passing parameters to main( )

 
Arthur Blair
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Netscape?? Do you mean NetBeans?
 
Arthur Blair
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...NetBEANS.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic