Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JNLP Arguments in OSX

1048020Jan 14 2015

I have a Web Start application deployed for both OSX and Windows. In both environments, I'm using java 8 update 25.

The JNLP contains program arguments. This works fine. Here is a snippet from my JNLP. Have a main that picks up program arguments, but then calls the Eclipse web start main.

<application-desc main-class="my.package.ParameterAwareMain">

        <argument>@user.home/.astoria/Workbench/ars.astoriasoftware.com</argument>

        <argument>-configuration</argument>

        <argument>@user.home/.astoria/Workbench/ars.astoriasoftware.com</argument>

    

     <!-- below are sometimes dynamic -->

      <argument>-v</argument> <argument>00000018WHA101385GYZ</argument>

</application-desc>

Sometimes the server adds arguments to the list, which tell my application to do certain things on startup...or if already started up, to pass them to a javax.jnlp.SingleInstanceListener.

This works fine on Windows, but not on OSx. I put a break in my ParameterAwareMain class, and find that I'm not receiving the dynamic arguments...just the arguments that were sent when the application was first installed.

Any ideas?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 11 2015
Added on Jan 14 2015
0 comments
598 views