Java 教程是为 JDK 8 编写的。本页中描述的示例和实践未利用在后续版本中引入的改进。
Users can run Java Web Start applications in the following ways:
You can run a Java Web Start application from a browser by clicking a link to the application's JNLP file. The following text is an example of a link to a JNLP file.
<a href="/some/path/Notepad.jnlp">Launch Notepad Application</a>
Java Web Start software loads and runs the application based on instructions in the JNLP file.
Try it now: Run Notepad
If you are using at least Java Platform, Standard Edition 6 or later, you can run a Java Web Start application through the Java Cache Viewer.
When Java Web Start software first loads an application, information from the application's JNLP file is stored in the local Java Cache Viewer. To launch the application again, you do not need to return to the web page where you first launched it; you can launch it from the Java Cache Viewer.
To open the Java Cache Viewer:
The application is listed on the Java Cache Viewer screen.
To run the application, select it and click the Run button, , or double click the application. The application starts just as it did from the web page.
You can add a desktop shortcut to a Java Web Start application. Select the application in the Java Cache Viewer. Right-click and select Install Shortcuts or click the Install button, .
A shortcut is added to the desktop.
You can then launch the Java Web Start application just as you would launch any native application.