Java Web Start (English by Machine translation)

Java

How to make Java Web Start.

use the sample app ControlsFX.

ControlsFX is an external library of great JavaFX8.

ControlsFX 

Of them, as long as it was downloaded and extracted the file
Library body controlsfx-8.0.2-developer-preview-1.jar
Sample application controlsfx-8.0.2-developer-preview-1-samples.jar
I use  these.

Signature does not seem to be jar files of these two.

You will sign the jar files of these two.

Create a signature file are implanted the following command to start the command prompt.

keytool -genkey –alias javafx -keystore keystore –storepass password –keypass password_2 -validity 3650

Please do not forget your password and alias name keystore.key The resulting file is required to sign the jar file.

Update the manifest file before you sign.

I will update as the following manifest file of controlsfx-8.0.2-developer-preview-1-samples.jar.

Manifest-Version: 1.0
Main-Class: org.controlsfx.HelloControlsFX
Class-Path: controlsfx-8.0.2-developer-preview-1.jar

We will now update our controlsfx-8.0.2-developer-preview-1-samples.jar to make the MANIFEST.MF file as described above.

jar uvmf MANIFEST.MF controlsfx-8.0.2-developer-preview-1-samples.jar

You can use the keystore file that you just created update the manifest file of controlsfx-8.0.2-developer-preview-1-samples.jar When you have finished
I put a sign controlsfx-8.0.2-developer-preview-1.jar and controlsfx-8.0.2-developer-preview-1-samples.jar.

jarsigner -keystore keystore controlsfx-8.0.2-developer-preview-1-samples.jar javafx

Enter the password you will be asked to enter password.

I put a sign the controlsfx-8.0.2-developer-preview-1.jar as well.

jarsigner -keystore keystore controlsfx-8.0.2-developer-preview-1.jar javafx

I enter here will also be prompted for a password of course.

Sign the jar file is now complete.

The next step is to create a JNLP file.

controlsfx-8.0.2-developer-preview-1-samples.jnlp

<?xml version=”1.0″ encoding=”utf-8″?>
<jnlp codebase=”http://yucchi.jp/java/java_web_start/HOGE/” spec=”1.0″ xmlns:jfx=”http://javafx.com” href=”controlsfx-8.0.2-developer-preview-1-samples.jnlp”>
  <information>
    <title>HelloControlsFX</title>
    <vendor>Hoge</vendor>
    <description>null</description>
    <offline-allowed/>
  </information>
  <resources>
    <jfx:javafx-runtime version=”2.2+” href=”http://javadl.sun.com/webapps/download/GetFile/javafx-latest/windows-i586/javafx2.jnlp”/>
  </resources>
  <resources>
    <j2se version=”1.6+” href=”http://java.sun.com/products/autodl/j2se”/>
    <jar href=”controlsfx-8.0.2-developer-preview-1-samples.jar” size=”200919″ download=”eager” />
    <jar href=”controlsfx-8.0.2-developer-preview-1.jar” size=”455114″ download=”eager” />
  </resources>
<security>
  <all-permissions/>
</security>
  <applet-desc  width=”800″ height=”600″ main-class=”com.javafx.main.NoJavaFXFallback”  name=”HelloControlsFX” >
    <param name=”requiredFXVersion” value=”8.0+”/>
  </applet-desc>
  <jfx:javafx-desc  width=”800″ height=”600″ main-class=”org.controlsfx.HelloControlsFX”  name=”HelloControlsFX” />
  <update check=”always”/>
</jnlp>

The codebase = “http://yucchi.jp/java/java_web_start/HOGE/” of the JNLP file for the above-mentioned
controlsfx-8.0.2-developer-preview-1-samples.jar
controlsfx-8.0.2-developer-preview-1.jar
controlsfx-8.0.2-developer-preview-1-samples.jnlp
It is ready to be swelling the link as below with the deployment.

<a href=”http://yucchi.jp/java/java_web_start/HOGE/controlsfx-8.0.2-developer-preview-1-samples.jnlp”>

However, you will need a web server of your supports the JNLP file.

to mine.types
application / x-java-jnlp-file jnlp
Please add it if it does not bet.

Webstart: click to launch this app as webstart (Java 8 実行環境必須)

Hatena タグ:

« »

Comment

  1. It’s hard to find your website in google. I found it on 11 spot,
    you should build quality backlinks , it will help you to increase traffic.

    I know how to help you, just type in google – k2 seo tricks

    返信

  2. I see a lot of interesting content on your blog. You have to spend a lot of time
    writing, i know how to save you a lot of time, there
    is a tool that creates unique, google friendly posts in couple of
    minutes, just type in google – k2 unlimited content

    返信

Leave a Reply to Vilma (or Cancel)

* が付いている項目は、必須項目です!

次の HTML タグと属性を利用できます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*

Trackback URL