$ javaws /path/to/file.jnlp
That works fine from a terminal window, but it was bugging me, because I was sure that there must be a way to launch these apps from the dock. And sure enough, it’s dead simple.
- Launch /Applications/Utilities/Java Preferences.app
- Select the Network tab.
- Click the View Cache Files button.
- Right-click on the app and select Install Shortcuts.
This lets you save an app file, which you can then drag onto the dock.