• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

specific command-line arg for NetBeans

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

Thanks.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.
reply
    Bookmark Topic Watch Topic
  • New Topic