jnlp
ファイルをローカルで使用するために Web サイトは必要ありません。とのファイル URI スキームを使用するだけです。jnlp codebase
jar href
これにより、ファイルの関連付けを試すことができますが、最初にバックアップを作成し、Java Preferences キャッシュを消去する必要があります。
補遺:
具体的な例として、これjnlp
は起動しますJFreeChart
:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="file:///Users/trashgod/jnlp/"
href="jfreechart-1.0.14-demo.jnlp">
<information>
<title>JFreeChart 1.0.14 Demo</title>
<vendor>Object Refinery Ltd</vendor>
<homepage href="http://www.object-refinery.com/" />
<description>A demo for the JFreeChart class library</description>
<description kind="short">JFreeChart demo application.</description>
<description kind="tooltip">JFreeChart 1.0.14 Demo</description>
<offline-allowed />
</information>
<resources>
<j2se version="1.5+" initial-heap-size="12m" max-heap-size="256m" />
<jar href="file:///opt/jfreechart/jfreechart-1.0.14-demo.jar" />
<jar href="file:///opt/jfreechart/lib/jcommon-1.0.17.jar" />
<jar href="file:///opt/jfreechart/lib/jfreechart-1.0.14.jar" />
</resources>
<application-desc main-class="demo.SuperDemo" />
</jnlp>
この<association/>
タグは属性mime-type
andextensions
を「特定の拡張機能と特定の MIME タイプのプライマリ ハンドラとしてオペレーティング システムに登録することを希望する JNLP クライアントへのヒント」として使用します。