Kasuntha
Kasuntha

Reputation: 13

Running Netbeans platform application without a GUI

My Java application built using Netbeans platform application. I need to run my application without a GUI. Anyone knows a way to run Netbeans platform application without a GUI ?

Upvotes: 0

Views: 613

Answers (1)

javabrett
javabrett

Reputation: 7628

Information gathered largely from How Can I Make My NetBeans Platform Run in GUI or Command-Line Mode? :

  • you will typically need to add a module to interpret some custom command-line arguments using the Command Line Processing API
  • Remember that you should not use System.out, System.err and System.in for the output, error and input streams in the options processor but instead get them from the Env object passed as a parameter to the process method.
  • When running a platform application which contains the Window System and other GUI modules, you will also need to specify --nosplash --nogui on the command line at startup to prevent the splash screen and window system from being displayed.

Upvotes: 1

Related Questions