• 怎样在 fedora 28 上 打开 .jnlp 文件


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

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

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

    ➜  Downloads yum search icedtea
    Last metadata expiration check: 16 days, 20:58:23 ago on Fri 06 Jul 2018 05:04:10 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 1 2 5) 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)
    View Code

    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

  • 相关阅读:
    TensorflowJS 教程
    理解TCP序列号(Sequence Number)和确认号(Acknowledgment Number)
    Wireshark 过滤 基本语法
    LSTM如何解决梯度消失或爆炸的?
    K-Means ++ 和 kmeans 区别
    LSTM UEBA异常检测——deeplog里其实提到了,就是多分类LSTM算法,结合LSTM预测误差来检测异常参数
    python 多进程练习 调用 os.system命令
    TLS 改变密码标准协议(Change Cipher Spec Protocol) 就是加密传输中每隔一段时间必须改变其加解密参数的协议
    ssl tls 证书链 根证书和叶证书查询
    TLS与SSL之间关系——SSL已经被IEFT组织废弃,你可以简单认为TLS是SSL的加强版
  • 原文地址:https://www.cnblogs.com/xuyaowen/p/jnlp-on-fedora.html
Copyright © 2020-2023  润新知