JDK-8136562 : Add Documentation For Manual Linux Install of Protocol Handler
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2015-09-15
  • Updated: 2018-08-29
  • Resolved: 2016-12-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Fixed
Related Reports
Relates :  
Description
This relates to the protocol handler feature implemented by Deploy for JDK9 so javaws is launched directly.

https://bugs.openjdk.java.net/browse/JDK-8055464

Here is the Linux version:

https://bugs.openjdk.java.net/browse/JDK-8129792

Here are the manual steps that need to be documented in the docs since this cannot be programmatically setup by the installer.

Firefox:
1. Open Firefox 
2. In location bar type "about:config" 
3. Add new boolean 
    name: network.protocol-handler.expose.jnlp 
    value: false 
4. Add new boolean 
    name: network.protocol-handler.expose.jnlps 
    value: false 
5. You will be asked to choose the application to launch once you click on a jnlp:// or jnlps:// protocol. Browse to javaws and clock OK. 


Chrome:
To configure xdg-open: 
1) Create javaws.desktop in .local/share/applications with following (make sure to change PATH_TO_JRE to path to JRE): 
[Desktop Entry] 
Encoding=UTF-8 
Name=Java(TM) Web Launcher 
Exec="PATH_TO_JRE"/bin/javaws %U 
Terminal=false 
Type=Application 
MimeType=x-scheme-handler/jnlp;x-scheme-handler/jnlps 

2) Run following commands: 
xdg-mime default javaws.desktop x-scheme-handler/jnlp 
xdg-mime default javaws.desktop x-scheme-handler/jnlps 
Comments
Updated documentation has been reviewed and validated
06-12-2016