However, sometimes I feel that one should be accustomed to work on the CLI as well, as these are the basics, until and unless your basics are strong, you can’t go into the depth of a particular domain!
Have a look at the screenshots;
![]() |
Fig 1. Right-click the Project Node, select the appropriate menu-item to goto Project Configuration Window.
![]() |
Fig 2. Click on Run, as you can see, then see to its right there’s a label ‘Arguments’, select the text-box next to it.
![]() |
Fig 3. Now, enter arguments, I tried using “Hello” and “World”, space has to be there for separating arguments as you would do in a CLI.
![]() |
Fig 4. Edit Main.java, to see whether your application prints the arguments in Output Window.
![]() |
Fig 5. Well, it does! See the Output Window.
Similarly, you can do it for NetBeans 6.1 Beta, Release Candidate 1, 2 and NetBeans 6.1 FCS!
![]() |
Anyways, try this out and do let me know, whether its helpful OR not!
| nb-60-config-proj.jpg | ![]() |
212388 bytes |
| nb-60-pass-args-output.jpg | ![]() |
217070 bytes |
| nb-60-print-args.jpg | ![]() |
216761 bytes |
| nb-60-set-args-0.jpg | ![]() |
212684 bytes |
| nb-60-set-args.jpg | ![]() |
215766 bytes |
| nb-61rc1-set-args.jpg | ![]() |
203274 bytes |
Before I begin, I would like to mention, that recently, Sun distributed 100 NetBeans IDE Tips & Tricks Mini-Book at NetBeans Day! Adam Myatt, had announced it on NetBeans Dzone and listed title’s of all the Tips & Tricks! So, I was not sure whether Tip 31, is similar to the one I’m mentioning or not!