Java application (open Java JNLP file) via Firefox Opera Chromium browser to implement remote management in server remote Virtual Console

Source: Internet
Author: User
Tags java web



The remote Virtual Console relies on the Java Runtime Environment (JRE), before opening the link through the browser, the system must install the JRE environment, the remote management console is actually a Java program, open the appropriate Web site will download a JNLP (Java Network Load Protocol) file, Only the program running this JNLP file can be remotely controlled, and the implementation of the JRE on Linux can be done through the OPENJDK JRE or the Oracle Java JRE.

First, OpenJDK
OPENJDK is an open source implementation of the GPL-licensed Java Platform (gpl-licensed), which has been released for more than six years. From the moment of release, the community of Java communities began to work hard to adapt to the new Open Source Code Foundation (code-base).

1, production to see whether the Linxu system installed OPENJDK
[Email protected]:~# java-version
OPENJDK Version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-bit Server VM (build 25.151-b12, Mixed mode)
[Email protected]:~#
The above information can be used to know that the 1.8.0_151 version of the system is installed OPENJRE
2, if not installed by the following command installation:
[Email protected]:~# apt-get Install Openjdk-8-jre

3. Add Browser plugin icedtea Java Web Start (alternative to Javaws)

[Email protected]:~# apt-get Install Icedtea-netx

Through the above settings, you can run the Java program directly through the Firefox browser for remote management.

4, Opera Chromium browser may not be associated with this plugin, no relationship to open this link will automatically download a jnlp file, save him to the specified directory, through the Javaws command to run.
Example: The specified directory is the/HOME/PIPCI/DOWNLOADS/JNLP file for the KVM.JNLP command as follows:

[Email protected]:/home/pipci/downloads# javaws KVM.JNLP #这种方式跟通过浏览器打开是一样的, just trouble dot, via browser plugin is also called javaws here command.


Second, Oracle Java

1, first to install the Oracle Java (JRE) installation method before the article has been written, here does not tell.
Link http://www.cnblogs.com/pipci/p/8609820.html

First create the Javaws program desktop shortcut,

The file name Sun_javaws.desktop is created with the following contents:

[Desktop Entry]
Name=oracle JRE Javaws
Comment=oracle JRE Javaws
Exec=/usr/local/java/jre1.8.0_161/bin/javaws
Icon=/usr/local/java/jre1.8.0_161/plugin/desktop/sun_java.png
Terminal=false
Type=application
Categories=application
Encoding=utf-8
Startupnotify=true

Copy the above Sun_java.desktop file to the/usr/share/applications/Directory command:
[Email protected]:~$ sudo cp-v sun_java.desktop sun_java.desktop

What do you want Firefox to do with this file when you open the link via Firefox in the pop-up tab? Open the Javaws to select the new add-on.

2, Opera Chromium browser may not be associated with this plugin, no relationship to open this link will automatically download a jnlp file, save him to the specified directory, through the Javaws command to run.
Example: The specified directory is the/HOME/PIPCI/DOWNLOADS/JNLP file for the KVM.JNLP command as follows:

[Email protected]:/home/pipci/downloads# javaws KVM.JNLP #这种方式跟通过浏览器打开是一样的, just trouble dot, via browser plugin is also called Javaws this program.

Third, if there are two versions of the Java program in the system, you can choose their own plug-ins, or through the absolute path program to run (environment variables can only specify one, the other will use the program absolute path).

Java application (open Java JNLP file) via Firefox Opera Chromium browser to implement remote management in server remote Virtual Console

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.