I think the actual code doesn't matter. The question is about how to run a
Java application from within Eclipse or NetBeans, and how to pass parameters to it. I'm only familiar with IntelliJ, so I can't help here. I'd suggest to check the documentation of your
IDE for something like "running applications"