📄 readme
字号:
JavaWebStart JRE 1.4.2 auto-download installer sample-----------------------------------------------------Brief Description :This sample is the Java Web Start JRE auto-download installer. You can specifythis installer in your application's JNLP file. Then, when your JNLPapplication is loaded by a client, if the required JRE is not on the clientmachine, this installer will be used to auto-download the JRE to the clientmachine.Files :build - This directory contains all the necessary files for building your applicationsrc - This directory contains the source code for the sample installerBuilding and Deployment of installer :To build on a specific platform, go to:jreinstaller/build/<platform>/jreinstallersand do a:gnumake -e SDK_12=<path to sdk directory> \ -e JNLP_JAR=<path to jnlp.jar/javaws.jar> \ -e J2RE_BIN=<path to the 1.4.2 jre installer executable> \ -e J2RE_LICENSE=<path to the jre installer license, e.g LICENSE file located in jre directory> \ -e SIGNING=<true if you want to sign the jars> \ -e CACERTS=<path to keystore location for jar signing> \ -e PASSWD=<password for keystore integrity> \ -e ALIAS=<keystore alias>For information on how to generate self-signed certificates for testing purpose, see:http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/development.html#signingThe resulting jar files will be generated in:jreinstaller/build/<platform>/jreinstallers/bin/The jnlp file for the installer can be found at:jreinstaller/build/<platform>/jreinstallers/resources/You will need to host the installer using the JNLPDownloadServlet and theVersionDownload Protocol. Please refer to the JNLPDownloadServlet guide formore details:http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/downloadservletguide.htmlThe "javaVersion" property in the JREInstaller jnlp file will be the version ofthe JRE. It must match the <version-id> tag (specified in the version.xml file)for the jnlp file of the JREInstaller.There is a sample version.xml and a sample jnlp file for the JREInstaller inthe directory jreinstaller/build/<platform>/jreinstallers/resources/.On Windows platform, the installer will install the JRE into the defaultlocation, "c:\program files\java\j2re1.4.2"On Solaris/Linux, the installer will install the JRE into the user'sjavawebstart cache.In order for your application to use this JREInstaller, you will need to setthe j2se href tag in the application's jnlp file to point to the URL where youhost the installer. For example, if your JREInstaller jnlp file is located athttp://somehost.com/142installer/javaws-1_0_1-j2re-1_4_2-windows-i586.jnlp, then the j2se href tag in your application should point to "http://somehost.com/142installer".
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -