最近使用 iDrac 和 iLO 总是会使用到 .jnlp 文件, 为了方便,今天把设置过程记录下来。

JNLP 文件,全名为 Java Network Launching Protocol 文件, 我们需要 javaws 命令去执行它。

在 fedora 中 ,我们需要安装 相应的 rpm 包,yum 仓库中已经为我们准备好了相关的文件,我们只需要运行命令来安装就行了。当然你也可以使用 编译源码安装。

➜  Downloads yum search icedtea
Last metadata expiration check: days, :: ago on Fri Jul :: PM CST.
==================================================================== Summary & Name Matched: icedtea =====================================================================
icedtea-web-javadoc.noarch : API documentation for IcedTea-Web
icedtea-web-devel.noarch : pure sources for debugging IcedTea-Web
========================================================================= Name Matched: icedtea ==========================================================================
icedtea-web.noarch : Additional Java components for OpenJDK - Java browser plug-in and Web Start implementation
➜  Downloads sudo yum install icedtea-web

Javaws 命令 执行

➜  Downloads javaws

SYNOPSIS
javaws [-run-options] jnlp file
javaws [-control-options] OPTIONS
When specifying options, the name of the jnlp file can be after the command, the -jnlp option, an option with no arguments, or after an argument with an option that takes one argument. A html file that launches a jnlp can be specified after the -html option.
The jnlp-file can either be a url or a local path.
The JNLP file should only be specified once, whether as a main argument, after -jnlp or through an html file.
Control options:
-about - Shows a sample application.(No argument expected)
-help - Prints out information about supported command and basic usage.(No argument expected)
-license - Display the GPL license and exit.(No argument expected)
-viewer - Shows the trusted certificate viewer.(No argument expected)
-Xclearcache - Clean the JNLP application cache.(No argument expected)
Run options:
-allowredirect - Follows HTTP redirects.(No argument expected)
-arg arg - Adds an application argument before launching.(Expected one or more arguments)
-browser - Launch embeded browser. Use in great need only!(Expected one or more arguments)
-headless - Disables download window, other UIs.(No argument expected)
-html - Location of HTML file to launch (url or file). You can use parameter ALL or numbers (like ) to select applets on page. However experimental, this switch should keep you still in safety.(Expected one or more arguments)
-jnlp - Location of JNLP file to launch (url or file).(Exactly one argument expected)
-nosecurity - Disables the secure runtime environment. You need also deployment.security.itw.ignorecertissues to workaround corrupted signatures(No argument expected)
-noupdate - Disables checking for updates.(No argument expected)
-param name=value - Adds an applet parameter before launching.(Expected one or more arguments)
-property name=value - Sets a system property before launching.(Expected one or more arguments)
-strict - Enables strict checking of JNLP file format.(No argument expected)
-update seconds - Check for updates.(Exactly one argument expected)
-verbose - Enable verbose output.(No argument expected)
-version - Print the IcedTea-Web version and exit.(No argument expected)
-Xignoreheaders - Skip jar header verification.(No argument expected)
-xml - Uses a strict XML parser to parse the JNLP file.(No argument expected)
-Xnofork - Do not create another JVM.(No argument expected)
-Xoffline - Prevent ITW network connection. Only cache will be used. Application can still connect.(No argument expected)
-Xtrustnone - Instead of asking user, will foretold all answers as no.(No argument expected)

Javaws 命令 说明

NAME
javaws - a Java Web Start client SYNOPSIS
javaws [-run-options] jnlp file
javaws [-control-options] DESCRIPTION
javaws is an implementation of a JNLP client. It uses a JNLP (Java Network Launch Protocol) file to securely run a remote Java application or a Java applet.
This implementation of javaws is from the IcedTea project and is based on the NetX project. A JNLP file is an xml file that describes how to securely run a remote Java application or a Java applet.

执行 jnlp 文件:

➜  Downloads javaws viewer.jnlp 

同理,在 ubuntu 中,也可以使用 apt 等工具进行搜索安装。

具体情况以实际执行为准。

参考:

https://linux-tips.com/t/execute-jnlp-files-in-linux/252

https://fedora.pkgs.org/27/fedora-i386/icedtea-web-1.7-4.fc27.noarch.rpm.html

https://icedtea.classpath.org/wiki/Main_Page

https://icedtea.classpath.org/wiki/FedoraBuildInstructions

怎样在 fedora 28 上 打开 .jnlp 文件的更多相关文章

  1. 怎样在 Mac 上打开 ~_Library 文件夹

    怎样在 Mac 上打开 ~_Library 文件夹 听语音 浏览:17674 | 更新:2015-05-20 10:51 | 标签:文件夹 Mac 上的~/Library 文件夹是默认为隐藏的.因为苹 ...

  2. 解决Mac上打开txt文件乱码问题

    出处:https://www.jianshu.com/p/f55ddf1e9839 经常会在Mac上打开一个txt文件,发现里面的中文都是乱码,问题是在Windows和手机上看都完全是正常的,这就十分 ...

  3. Linux下Firefox打开文件jnlp文件

    ubuntu(linux)打开jnlp文件 咘咘 2019-05-20 15:12:48 1331 收藏展开 前提条件是安装有java环境.whereis java 查看自己java安装目录.本人是在 ...

  4. OpenSUSE Leap 42.3下通过Firefox Opera Chromium浏览器直接执行java应用程序(打开java jnlp文件)实现在服务器远程虚拟控制台完成远程管理的方法

    远程虚拟控制台依赖于java运行环境(jre),在通过浏览器打开链接前,系统必须安装jre环境,远程管理控制台其实就是一个java程序,打开相应的网站会下载一个jnlp(java网络加载协议)的文件, ...

  5. Ubuntu下通过Firefox Opera Chromium浏览器直接执行java应用程序(打开java jnlp文件)实现在服务器远程虚拟控制台完成远程管理的方法

    远程虚拟控制台依赖于java运行环境(jre),在通过浏览器打开链接前,系统必须安装jre环境,远程管理控制台其实就是一个java程序,打开相应的网站会下载一个jnlp(java网络加载协议)的文件, ...

  6. 【O】VSS 2005上传PDF文件之后,打开提示文件损坏或者内容为空

    问题: VSS 2005上传PDF文件之后,打开提示文件损坏或者内容为空: 解决方式: 在vss的客户端的tools-option中,file type选项卡里,在binary file文本框中,加入 ...

  7. .pages怎么在windows上打开?Windows下打开在Mac中编辑的.pages文件方法

    .pages怎么在windows上打开?Windows下打开在Mac中编辑的.pages文件方法 1.最简单的方法是修改后缀名为.zip然后解压,解压后就可以看到一张图片,这个就是文档内容了. 2.更 ...

  8. JFinal中文件上传后会默认放置到WebContent的upload包下,但是tomcat会自动重启,当我们再次打开upload文件夹查看我们刚刚上传的文件时,发现上传的文件已经没有了。

    JFinal中文件上传后会默认放置到WebContent的upload包下,但是tomcat会自动重启,当我们再次打开upload文件夹查看我们刚刚上传的文件时,发现上传的文件已经没有了.因为tomc ...

  9. eclipse jetty 请求的操作无法在使用用户映射区域打开的文件上执行

    使用jetty  debug代码启动  在eclipse中进行运行调试,碰到无法编辑保存webapp下的文件 提示: 请求的操作无法在使用用户映射区域打开的文件上执行 解决方法: 从 jetty 7 ...

随机推荐

  1. zk特性和场景

    zk解决什么问题 分布式一致性问题 一致性一般定义是分布式系统中状态或数据保持同步和一致.实际上就是围绕着“看见”来的.谁能看见?能否看见?什么时候看见? 举个例子:淘宝后台卖家,在后台上架一件大促的 ...

  2. linux查看系统的硬件信息【转】

    linux查看系统的硬件信息,并不像windows那么直观,这里我罗列了查看系统信息的实用命令,并做了分类,实例解说. cpu lscpu命令,查看的是cpu的统计信息. blue@blue-pc:~ ...

  3. mysql pdo设置显示报错

    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    

  4. php交叉合并数组

    如数组 array1 = array('a', 'b', 'c');     array2 = array('1', '2', '3'); 希望能实现结果 array3 = array('a', '1 ...

  5. 使用显式的Lock对象取代synchronized关键字进行同步

    Java SE5的java.util.concurrent类库还包含有定义在java.util.concurrent.locks中的显式的互斥机制.Lock对象必须被显式地创建.锁定和释放.因此,它与 ...

  6. winform窗体 小程序【进程】

    进程 一个应用程序就是一个进程,我的理解是,只要是打开应用程序,就会创建进程. 在.NET框架在using.System.Diagnostics名称空间中,有一个类Process,用来创建一个新的进程 ...

  7. tomcat学习步骤,附带打破双亲委派模型企业应用实战

    1. tomcat入门 入门模块仅做学习大纲梳理,忽略了具体操作指引. Tomcat的三种部署模式: 简单架构模型 连接器的非阻塞模式(NIO) 通道(Channel).缓冲区(Buffer).选择器 ...

  8. 机器人数目-2015决赛Java语言C组第一题

    标题:机器人数目 少年宫新近邮购了小机器人配件,共有3类,其中,A类含有:8个轮子,1个传感器B类含有: 6个轮子,3个传感器C类含有:4个轮子,4个传感器 他们一共订购了100套机器人,收到了轮子6 ...

  9. IIS进程回收后第一次访问慢的问题

    IIS 有一种机制,默认会在IIS空闲一定时间段后,将应用程序池进行回收,这个时间段在IIS6中默认是20分钟,在IIS7中默认是1740分钟.两个配置都不合理,都会导致当应用程序池被回收后,第一次访 ...

  10. 【 js 基础 】【读书笔记】Javascript “继承”

    是时候写一写 “继承”了,为什么加引号,因为当你阅读完这篇文章,你会知道,说是 继承 其实是不准确的. 一.类1.传统的面向类的语言中的类:类/继承 描述了一种代码的组织结构形式.举个例子:“汽车”可 ...