wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes specific command-line arg for NetBeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "specific command-line arg for NetBeans" Watch "specific command-line arg for NetBeans" New topic

specific command-line arg for NetBeans

Fin Lander

Joined: May 10, 2011
Posts: 1
I want to pass the following command-line arg to NetBeans. I know where to do it in NetBeans (Project Props >> Run >> Args), but it is not working. The arg is for feeding a file at run-time to the main method. Does anyone know how to pass the arg in NetBeans?

< test1.dat

Peter Johnson

Joined: May 14, 2008
Posts: 5811

"Fin Lander", please see you private messages regarding an important administrative matter.

Regarding your question, I don't think that you can pass a stdin redirect to an app - a redirect using "<" is a command line capability (that is, it is not a JVM argument nor an application argument). So unless NetBeans provides a specific field into which you can supply a file to use for stdin (and I don't see it), I don't think that it is possible.

JBoss In Action
I agree. Here's the link: http://aspose.com/file-tools
subject: specific command-line arg for NetBeans
Similar Threads
doubt in mock exam!
The console class.
Command line arg
java.io.Console try in Netbeans
Netbeans and Ctrl + z (end of file)