Questions tagged [jnlp]

JNLP stands for Java Network Launch Protocol. It is the format of the XML based files used to configure the details of applications & applets launched using Java Web Start.

Java Network Launching Protocol

JNLP stands for Java Network Launch Protocol. It is both the format/file type of the XML based files used to configure the details of apps. launched using Java Web Start, as well as the package name of the API that is provided to JWS apps.

Java Web Start was introduced in Java 1.2, but originally launched applets as free floating entities. Since Java 1.6.0_10 (the Next Generation Java Plug-In), JNLP based applets can remain embedded in a web page.

The JNLP file specifies the resources required for an app., as well as:

  • Splash image to use
  • Shortcuts for the desktop and start menu
  • Icons for the shortcuts
  • Details of the app. such as title and vendor
  • Download and update behavior
  • The security environment requested by the app. (JWS launched apps. are sand-boxed by default).
  • ..

The javax.jnlp package is an API provided to JWS based apps. The JNLP API enables sand-boxed apps. to achieve things that would otherwise not be possible, as well as providing utility methods considered useful to apps. launched over a network. Demos. of the JNLP API are available, along with with source and build file.

The Java Network Launching Protocol (JNLP) Specification 1.5 Maintenance Release is available for download only. No expansions on the specification were introduced between 1.5 & 1.6, so it is effectively the latest version. The JNLP spec. is a valuable resource that contains information found in no other place.

1399 questions
10
votes
3 answers

Authentication required window popping up after 7u21 update

I've been working on a project for the last 6 months. For this project I have a glassfish server instance where a webservice is deployed. At the client side, I'm using JavaFX2.2 which does REST requests with Jersey (XML requests/responses, no JSON)…
Perneel
  • 3,317
  • 7
  • 45
  • 66
10
votes
4 answers

What's the difference between InputStream and ByteArrayInputStream?

The following code is extracted from the java web start chapter of the core java volume 1. ByteArrayOutputStream out = new ByteArrayOutputStream(); PrintStream printOut = new PrintStream(out); printOut.print(panel.getText()); …
scobur
  • 275
  • 2
  • 3
  • 9
10
votes
4 answers

How to recreate shortcut to webstart application?

I use the shortcut tag in my appliation's jnlp descriptor to create a desktop link and a menu entry for my application. If these shortcuts get deleted on the client - how can they be reinstalled automatically without user action? Is there a…
räph
  • 3,634
  • 9
  • 34
  • 41
9
votes
1 answer

Prevent Firefox from downloading endless JNLP files?

Every time I click a Java Webstart button, Firefox downloads the JNLP file and puts it in my Downloads folder. I have over 500 JNLP files from my JWS app called name-123.jnlp and so on. Internet Explorer doesn't do this, is there a way to stop…
J. Stoever
  • 856
  • 12
  • 20
9
votes
1 answer

Automate builds for Java RCP for deployment with JNLP

I've found many sources that talk about the automated Eclipse PDE process. I feel these sources don't do a good job explaining what's going on. I can create the deployable package, in a semi-manual process via the Feature Export. The automated…
TJR
  • 3,617
  • 8
  • 38
  • 41
9
votes
2 answers

package javax.jnlp is declared in module java.jnlp, which is not in the module graph

I have a project that uses Java webstart technology. I decided to upgrade the Java version from 8 to 9. However, I faced the following error on compiling: error: package javax.jnlp is not visible import javax.jnlp.DownloadServiceListener; …
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417
9
votes
2 answers

Tracing Javaws launch

I have a Java application which is launched via Java Webstart. Occasionally, following a new deployment of the application, it will happen that launching the application results in it being downloaded twice on every launch. I haven't got to the…
PhilDin
  • 2,802
  • 4
  • 23
  • 38
9
votes
0 answers

All Site Permissions for jnlp web start file for Mac Yosemite

I am using a WebStart file, launched with a jnlp file. Actually downloaded it locally. I used the same jnlp file on a windows machine, I changed the permissions through the java.policy file. The same file works on Windows but I get accessed…
Berlin Brown
  • 11,504
  • 37
  • 135
  • 203
9
votes
1 answer

Enabling JVM options with Java Web Start / JNLP

I'm creating a Web Start application which would benefit from some of the newer JVM options (especially escape analysis, G1 garbage collector etc.) At the same time, I would like the application to work gracefully on older JVMs that do not support…
mikera
  • 105,238
  • 25
  • 256
  • 415
9
votes
2 answers

How to specify a JRE range in jnlp file?

We have a java app which uses Java Web Start. The jnlp file is configured with [j2se version="1.5+"]. So if JRE 1.5 and 1.6 are installed, the app is run on 1.6. Now, we have requirement where the app should be restricted to run only within the…
user32262
  • 8,660
  • 21
  • 64
  • 77
9
votes
3 answers

iOS tests will not run on simulator when using Jenkins through JNLP

I have been trying to get xcodebuild tests to work on a remote machine using Jenkins. I ran into the error of not being able to launch a GUI through SSH and solved it by launching a slave through JNLP as suggested here: Timeout when running…
PastryPup
  • 166
  • 1
  • 8
9
votes
1 answer

How to use JNLP to pass command line arguments to the application?

I have a JNLP package for my application. Now I have the need to pass command line arguments to my application. How do I extend my JNLP file to list the command line arguments? For instance, I need to say java main.class arg1 arg2 and the arg1 and…
reza
  • 5,972
  • 15
  • 84
  • 126
9
votes
2 answers

Pass dynamic params via JNLP

I am using JavaScript in order to execute JNLP which in the end will execute my client. I am trying to pass parameters via JavaScript execution to the JNLP and having those parameters via JNLP inside my client. The JavaScript is executing this URL…
rayman
  • 20,786
  • 45
  • 148
  • 246
9
votes
2 answers

Where can I find the jnlp api jar in jdk 7?

Possible Duplicate: Can’t find jnlp.jar in JDK 1.7 For jdk 1.6, it can be found here (according to Where can i download JNLP.jar): ${java.home}/sample/jnlp/servlet/jnlp.jar However, I don't see this directory in my jdk 7 home. Where did it go?
Reto Höhener
  • 5,419
  • 4
  • 39
  • 79
9
votes
3 answers

Debugging JNLP started application

I created a Java desktop-application (using Swing) and am now trying to make it work by starting it from the net using JNLP. The application works fine when I start it from the terminal, but as soon as I launch it from JNLP, it does not close. I…
Lukas Knuth
  • 25,449
  • 15
  • 83
  • 111