Go to main content
1/17
Contents
Title and Copyright Information
Preface
Audience
Documentation Accessibility
Related Documents
Conventions
Part I Deployment Basics
1
Getting Started
Basic Steps
Choose the Execution Environment
Create the Package
Packaging Tools
NetBeans IDE
Ant Tasks
Java Packager Command-Line Tool
Create the Web Page
Distribute Your Application
Beyond the Basics
Part II Packaging
2
Self-Contained Application Packaging
Introduction
Benefits and Drawbacks of Self-Contained Application Packages
Basics
Self-Contained Application Structure
Basic Build
Customizing the Package Using Drop-In Resources
Prepare Custom Resources
Substitute a Built-In Resource
Customization Options
Platform-Specific Customization for Basic Packages
macOS
Passing Arguments to a Self-Contained Application
Associating Files with a Self-Contained Application
Supporting Multiple Entry Points
Customization of the JRE
Packaging for Modular Applications
Installable Packages
Types of Installable Packages
EXE Package
MSI Package
DMG Package
Linux Packages
Working Through a Deployment Scenario
3
JavaFX Ant Tasks
Requirements to Run JavaFX Ant Tasks
JavaFX Ant Elements
Using JavaFX Ant Tasks
Ant Script Examples
Deploying the JavaFX Hello World Example
Deploying the JavaFX Hello World Example as a Self-Contained Application
Deploying a JavaFX Application with External JAR Files
Overriding JVM Options for Self-Contained Applications
JavaFX Ant Task Reference
<fx:csstobin>
<fx:deploy>
<fx:jar>
<fx:signjar>
JavaFX Ant Helper Parameter Reference
<fx:add-modules>
<fx:application>
<fx:argument>
<fx:association>
<fx:bundleArgument>
<fx:callback>
<fx:callbacks>
<fx:fileset>
<fx:htmlParam>
<fx:icon>
<fx:info>
<fx:jvmarg>
<fx:jvmuserarg>
<fx:limit-modules>
<fx:module-path>
<fx:param>
<fx:permissions>
<fx:platform>
<fx:preferences>
<fx:property>
<fx:resources>
<fx:runtime>
<fx:secondaryLauncher>
<fx:splash>
<fx:template>
Part III Java Web Start Technology
4
Overview of Java Web Start Technology
Introduction to Java Web Start
Benefits of Java Web Start
Where to Find Java Web Start
Using Java Web Start Software
Launching from a Web Browser
Launching from Desktop Icons and the Start Menu (Microsoft Windows and Linux Running GNOME 2.0+)
Using Java Web Start Software Behind a Proxy Server or Firewall
Setting Up the Web Server
Installing the Java Web Start Protocol Handler
Installing the Protocol Handler for Chrome
Installing the Protocol Handler in Firefox
5
Application Development Considerations
Introduction to Web Deployment
Retrieving Resources from JAR Files
Accessing the Client Using the JNLP API
Security and Code Signing
Signing JAR Files with a Test Certificate
How to Encode JNLP Files
Dynamic Download of HTTPS Certificates
6
Migrating Java Applets to Java Web Start and JNLP
Migrating an Existing Java Applet
Rewriting a Java Applet as a Java Web Start Application
Special Considerations
7
JNLP File Syntax
Introduction to JNLP File Syntax
Examples of a JNLP File
JNLP Elements
jnlp Element
information Element
security Element
update Element
resources Element
application-desc Element
applet-desc Element
component-desc Element
installer-desc Element
8
JNLP API Examples
Using the BasicService Service
Using the ClipboardService Service
Using the DownloadService Service
Using the DownloadService2 Service
Implementing the DownloadServiceListener Service
Using the FileOpenService Service
Using the FileSaveService Service
Using the IntegrationService Service
Using the PrintService Service
Using the PersistenceService Service
Using FileContents
Using a JNLPRandomAccessFile
Using the SingleInstanceService Service
Using an ExtendedService Service
Part IV Configuring and Monitoring Deployment
9
Java Control Panel
Overview of Java Control Panel
General Tab in the Java Control Panel
Update Tab in the Java Control Panel
Scheduling the Check for Updates
Java Update Scheduler
Desktop Settings Tab in the Java Control Panel
Editing Desktop Settings
Java Runtime Parameters
Setting classpath or cp
Enabling and Disabling Assertion Support
Tracing and Logging Support
Debugging Applets in Java Plug-in
Default Connection Timeout
Web Settings Tab in the Java Control Panel
Exception Site List Tab
Deployment Rule Set Tab
Temporary Files Settings Tab
Network Settings Tab
Java Cache Viewer Tab
Security Tab in the Java Control Panel
General Security Settings Tab
Manage Certificates Tab
User-Level Certificates
System-Level Certificates
Advanced Tab in the Java Control Panel
Debugging
Java Console
Shortcut Creation
JNLP File/MIME Association
Application Installation
Execution Environment Security Settings
Mixed code (sandboxed vs. trusted) security verification
Perform signed code certificate revocation checks on
Check for signed code certificate revocation using
Perform TLS certificate revocation checks on
Check for signed code certificate revocation using
Advanced Security Settings
Miscellaneous
10
Deployment Rule Set
Overview of Deployment Rule Sets
Create the Rule Set
Define the Rules
<ruleset>
<rule>
<id>
<certificate>
<checksum>
<jnlp-checksum>
<action>
<message>
<customer>
Set Up Rules for Calls From JavaScript Code (LiveConnect)
Set Up Rules for Mixed Code
Get the Certificate Hash
Packaging the Rule Set
Installing the Rule Set
Viewing the Active Rule Set
Security Considerations
Examples
Java Deployment Rule Set DTD
Scripting on this page enhances content navigation, but does not change the content in any way.