If you like JavaFX and the really great afterburner.fx  project provided by Adam Bien  then you can use the following little trick to use application arguments.

What you just have to do is to tell afterburner that program arguments are considered as a source of configuration, for that modify your main class as follow:

public void start(Stage stage) throws Exception {
// Use application parameters as additional configuration source
Injector.setConfigurationSource(getParameters().getNamed()::get);

...
}

Considering that your application uses a ServerConfiguration class managed by afterburner.fx (injected in some presenter for example) as the following

public class ServerConfiguration {
@Inject
private String host;

@Inject
private String port;

...
}
When you launch your application using JavaFX parameters convention

java -jar myapp.jar --host=myserver --port=9090

then the ServerConfiguration object instance that will be created by afterburner.fx will have its fields injected with the program arguments values.