Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
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.
✍: FYIcenter
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:
⇒ Publish Application JAR File on Web Server
⇐ Build Java Application as Executable JAR
2017-07-15, 1894🔥, 0💬
Popular Posts:
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
What Is commons-net-ftp-2.0.jar? commons-net-ftp-2.0.jar is the JAR file for Apache Commons Net FTP ...
commons-io-1.4.jar is the JAR file for Commons IO 1.4, which is a library of utilities to assist wit...
JDK 11 jdk.internal.vm.compiler .jmodis the JMOD file for JDK 11 Internal VM Compiler module. JDK 11...
Apache Commons Codec library provides implementations of common encoders and decoders such as Base64...