0 Replies Latest reply: Sep 4, 2013 10:00 AM by user6427421 RSS

    getting command line parameters to JavaFX app started by javaws

    user6427421

      How can I get command line parameters into a JavaFX app launched via javaws ?

       

      I've tried

       

      javaws -open foo=bar http://localhost:8080/test/myapp.jnlp

       

      but none of these:

       

      Map<String, String> named = getParameters().getNamed();

      List<String> unnamed = getParameters().getUnnamed();

      List<String> raw = getParameters().getRaw();

       

      return anything. I also tried

       

      javaws http://localhost:8080/test/myapp.jnlp?foo=bar

       

      and then

       

      String url = getHostServices().getDocumentBase().toString();

       

      but it just returns url = http://localhost:8080/test/

       

      Does anyone have any idea ?  TBH, I'm just about ready to give JavaFX away and go back to GWT.