Create JNLP File for Java Application
How to create a JNLP file for my Java application? I have my application packaged in an executable JAR file.
If you have your application packaged in an executable JAR file, you can follow this tutorial to create a JNLP file to launch the application:
1. Create a JNLP file, HelloJavaWs.jnlp for the application:
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (c) FYIcenter.com --> <jnlp spec="1.0+"> <information> <title>Hello JavaWS</title> <vendor>FYIcenter.com</vendor> </information> <resources> <jar href="/HelloJavaWs.jar" main="true" /> </resources> <application-desc name="Hello JavaWS Application" main-class="HelloJavaWs"> </application-desc> </jnlp>
2. Try to run it with JavaWS:
fyicenter> javaws HelloJavaWs.jnlp
You see a security message displayed:
Application Blocked by Java Security For security, applications must meet the requirements for the High or Very High security settings, or be part of the Exception Site list, to be allowed to run. Name: Hello JavaWS Location: file:// Reason: Your security settings have blocked a local application from running.
So JavaWS default security does not allow you to run applications from local machine.
See the next tutorial on publishing the application on a Web server.
The picture below shows you the "Application Blocked by Java Security" error window:
2017-07-15, 1387👍, 0💬
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...
Provides support for the runtime platform, core utility methods and the extension registry. JAR File...
commons-lang-1.0.1.jar is the JAR file for Apache Commons Lang 1.0.1, which provides a host of helpe...
jlGui is a music player for the Java platform. It is based on Java Sound 1.0 (i.e. JDK 1.3+). It sup...
JDK 11 jdk.dynalink.jmod is the JMOD file for JDK 11 Dynamic Linking module. JDK 11 Dynamic Linking ...