运行 Java Chrome 可以吗? JNLP?
Can you Run Java on Chrome? JNLP?
我正在制作一个网站,我需要在上面安装一个 VNC 查看器。我已经在使用 Tight VNC,他们有一个 Java 查看器。此代码能够 运行 作为小程序,但 Chrome 和 Firefox 等现代浏览器不允许小程序。 运行 Java 在 Chrome 上编码还有其他方法吗?
我听说有些浏览器支持 Java Web Start,但我认为 Chrome 不支持。如果 Chrome 谁能帮我把这个小程序转换成 JNLP 文件?
<applet archive="tightvnc-jviewer.jar"
code="com.glavsoft.viewer.Viewer"
width="1" height="1">
<param name="Host" value="localhost"/>
<!-- Host to connect. Default: the host from which the applet was loaded. -->
<param name="Port" value="5900"/>
<!-- Port number to connect. Default: 5900 -->
<!--param name="Password" value="" /--> <!-- Password to the server (not recommended to use this parameter here) -->
<param name="OpenNewWindow" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="ShowControls" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="ViewOnly" value="no"/>
<!-- yes/true or no/false. Default: no/false -->
<param name="AllowClipboardTransfer" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="RemoteCharset" value="standard"/>
<!-- Charset encoding is used on remote system. Use this option to specify character encoding will be used for encoding clipboard text content to. Default value (when parameter is empty): local system default character encoding. Set the value to 'standard' for using 'Latin-1' charset which is only specified by rfb standard for clipboard transfers. -->
<param name="ShareDesktop" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="AllowCopyRect" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="Encoding" value="Tight"/>
<!-- Possible values: "Tight", "Hextile", "ZRLE", and "Raw". Default: Tight -->
<param name="CompressionLevel" value=""/>
<!-- 1-9 or empty. Empty means server default -->
<param name="JpegImageQuality" value=""/>
<!-- 1-9, Lossless or empty. When param is set to "Lossless" no jpeg compression used. Empty means server default -->
<param name="LocalPointer" value="On"/>
<!-- Possible values: on/yes/true (draw pointer locally), off/no/false (let server draw pointer), hide). Default: "On"-->
<param name="ConvertToASCII" value="no"/>
<!-- Whether to convert keyboard input to ASCII ignoring locale. Possible values: yes/true, no/false). Default: "No"-->
<param name="Tunneling" value="auto"/>
<!-- Tunneling. Possible values:
auto - allow viewer to choose tunneling mode,
none/no - no tunneling use,
SSL - choose SSL tunneling when available.
Default: "auto" -->
<param name="colorDepth" value=""/>
<!-- Reserved for future. Possible values: 6, 8, 16, 24, 32 (equals to 24). Only 24/32 is supported now -->
<param name="ScalingFactor" value="100"/>
<!-- Scale local representation of the remote desktop on startup. Default is 100 means 100% -->
<!--param name="showConnectionDialog" value="yes" /-->
<!-- Set to "No" if you want not to show initial connection dialog. Default: "Yes". -->
<param name="AppletGoodbyeURL" value="about:blank"/>
<!-- URL to be redirected on applet stopping. When blank or absent stop applet and do nothing. -->
<!-- SSH tunneling options -->
<param name="sshHost" value=""/>
<!-- SSH host name. -->
<param name="sshUser" value=""/>
<!-- SSH port number. When empty, standard SSH port number (22) is used -->
<param name="sshPort" value=""/>
<!-- SSH user name. -->
</applet>
如果您想要 .jar 文件,可在 http://www.tightvnc.com/download.php
下载
如果无法从 Chrome 到 运行 Java,我有没有办法制作一个 link 来让用户打开该页面在 Internet Explorer 中?
Chrome 和 Firefox 都不支持 Java 小程序。您必须切换到 HTML5 或 flash.
Chrome 并且 Firefox 不久前放弃了 Java 支持。 Edge 一开始并不支持它。您可以从每个浏览器打开 .jnlp 文件(参见示例 here),但这就像打开您从 Internet 某处下载的任何可执行文件一样。查看上面的示例,看看它在每个浏览器中的行为。
If there is no way to run Java from Chrome, is there a way for me to make a link that will open the user to that page in Internet Explorer?
不,您不能切换浏览器。那将是一个很大的安全风险,你会在 macOS 或 linux 上做什么?
我正在制作一个网站,我需要在上面安装一个 VNC 查看器。我已经在使用 Tight VNC,他们有一个 Java 查看器。此代码能够 运行 作为小程序,但 Chrome 和 Firefox 等现代浏览器不允许小程序。 运行 Java 在 Chrome 上编码还有其他方法吗?
我听说有些浏览器支持 Java Web Start,但我认为 Chrome 不支持。如果 Chrome 谁能帮我把这个小程序转换成 JNLP 文件?
<applet archive="tightvnc-jviewer.jar"
code="com.glavsoft.viewer.Viewer"
width="1" height="1">
<param name="Host" value="localhost"/>
<!-- Host to connect. Default: the host from which the applet was loaded. -->
<param name="Port" value="5900"/>
<!-- Port number to connect. Default: 5900 -->
<!--param name="Password" value="" /--> <!-- Password to the server (not recommended to use this parameter here) -->
<param name="OpenNewWindow" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="ShowControls" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="ViewOnly" value="no"/>
<!-- yes/true or no/false. Default: no/false -->
<param name="AllowClipboardTransfer" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="RemoteCharset" value="standard"/>
<!-- Charset encoding is used on remote system. Use this option to specify character encoding will be used for encoding clipboard text content to. Default value (when parameter is empty): local system default character encoding. Set the value to 'standard' for using 'Latin-1' charset which is only specified by rfb standard for clipboard transfers. -->
<param name="ShareDesktop" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="AllowCopyRect" value="yes"/>
<!-- yes/true or no/false. Default: yes/true -->
<param name="Encoding" value="Tight"/>
<!-- Possible values: "Tight", "Hextile", "ZRLE", and "Raw". Default: Tight -->
<param name="CompressionLevel" value=""/>
<!-- 1-9 or empty. Empty means server default -->
<param name="JpegImageQuality" value=""/>
<!-- 1-9, Lossless or empty. When param is set to "Lossless" no jpeg compression used. Empty means server default -->
<param name="LocalPointer" value="On"/>
<!-- Possible values: on/yes/true (draw pointer locally), off/no/false (let server draw pointer), hide). Default: "On"-->
<param name="ConvertToASCII" value="no"/>
<!-- Whether to convert keyboard input to ASCII ignoring locale. Possible values: yes/true, no/false). Default: "No"-->
<param name="Tunneling" value="auto"/>
<!-- Tunneling. Possible values:
auto - allow viewer to choose tunneling mode,
none/no - no tunneling use,
SSL - choose SSL tunneling when available.
Default: "auto" -->
<param name="colorDepth" value=""/>
<!-- Reserved for future. Possible values: 6, 8, 16, 24, 32 (equals to 24). Only 24/32 is supported now -->
<param name="ScalingFactor" value="100"/>
<!-- Scale local representation of the remote desktop on startup. Default is 100 means 100% -->
<!--param name="showConnectionDialog" value="yes" /-->
<!-- Set to "No" if you want not to show initial connection dialog. Default: "Yes". -->
<param name="AppletGoodbyeURL" value="about:blank"/>
<!-- URL to be redirected on applet stopping. When blank or absent stop applet and do nothing. -->
<!-- SSH tunneling options -->
<param name="sshHost" value=""/>
<!-- SSH host name. -->
<param name="sshUser" value=""/>
<!-- SSH port number. When empty, standard SSH port number (22) is used -->
<param name="sshPort" value=""/>
<!-- SSH user name. -->
</applet>
如果您想要 .jar 文件,可在 http://www.tightvnc.com/download.php
下载如果无法从 Chrome 到 运行 Java,我有没有办法制作一个 link 来让用户打开该页面在 Internet Explorer 中?
Chrome 和 Firefox 都不支持 Java 小程序。您必须切换到 HTML5 或 flash.
Chrome 并且 Firefox 不久前放弃了 Java 支持。 Edge 一开始并不支持它。您可以从每个浏览器打开 .jnlp 文件(参见示例 here),但这就像打开您从 Internet 某处下载的任何可执行文件一样。查看上面的示例,看看它在每个浏览器中的行为。
If there is no way to run Java from Chrome, is there a way for me to make a link that will open the user to that page in Internet Explorer?
不,您不能切换浏览器。那将是一个很大的安全风险,你会在 macOS 或 linux 上做什么?