|
| Re: Start application with parameters [message #786801 is a reply to message #786462] |
Mon, 30 January 2012 15:47  |
Bertin Kiekebosch Messages: 223 Registered: August 2011 |
Senior Member |
|
|
Hi,
if you add some command line parameters you can read them inside your app by using Platformget.CommandLineArgs(); Example below is the Desktop.execInit().
@Override
protected void execInit() throws ProcessingException {
String[] args = Platform.getCommandLineArgs();
if (args != null) {
for (int i = 0; i < args.length; i++) {
System.out.println(args[i]);
}
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.01554 seconds