Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8102592

Native packaging: native launcher should pass command line parameters to the app

    XMLWordPrintable

Details

    Backports

      Description

        From the OTN (https://forums.oracle.com/forums/thread.jspa?forumID=1385&threadID=2440130):

        ======
        I developed a JavaFX 2.2 aplication that receive a command line argument, but when i package this app on .exe format (using netbeans ant task and inno setup 5) the argument is not passed to javafx app.

        Ex:

        <This call is OK:>
        java -jar myapp.jar test_parameter

        <This don´t work>
        myapp.exe test_parameter
        I´m trying to get the parameter with getParameters().getUnnamed().get(0) .
        ======

        We should be accepting command line parameters. This is especially useful if user wants to create shortcut to applications.

        Note that we also want native launchers to treat some native args specially (like /Debug).
        Perhaps these should be required to be in front of arg list.

        Attachments

          Issue Links

            Activity

              People

                igor Igor Nekrestyanov (Inactive)
                igor Igor Nekrestyanov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported: