Questions tagged [java-web-start]

Java Web Start (JWS) is the Oracle technology used to launch rich client (Swing, Java-FX, SWT, AWT..) desktop applications directly from a network or internet link. It offers 'one click' installation for platforms that support Java.

Java Web Start

Java Web Start (JWS) is the Oracle Corporation technology used to launch rich client (Swing, Java-FX, AWT, SWT..) desktop applications directly from a network or internet link. It offers 'one click' installation for platforms that support Java.

With JDK 9 JWS is deprecated and will be removed in future release!

JWS provides many appealing features including, but not limited to, splash screens, desktop integration, file associations, automatic update (including lazy downloads and programmatic control of updates), partitioning of natives & other resource downloads by platform, architecture or locale, configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.), easy management of common resources using extensions..

By default, an applet-like security sand-box is applied to code launched using JWS. To relax this sand-box the code needs to be digitally signed by the provider, and trusted by the end user. Any application launched using JWS also has access to the JNLP API. The JNLP API provides services for sand-boxed applications to achieve functionality (such as printing, opening a browser or accessing the local disks) that is normally reserved for trusted applications.

JWS applications have three security levels. The first (sand-boxed) and third (all-permissions) are equivalent to the applet sand-boxed and trusted modes. The one in between is (the oddly named) j2ee-application-client-permissions. This security level provides some services unprompted, while still placing many limits on the application.

JWS was first offered as a separate download on 14 March 2001 over two years after the release of Java 1.2, and could launch both applications and applets as free floating entities. The functionality became co-bundled with J2SE 1.4.2. Since 1.6.0_10 (the Next Generation Java Plug-In), JWS can also be used to configure applets that remain embedded in a web page.

See also:

1800 questions
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
4 answers

How to distribute my Java program so that it is runnable by double-clicking a single file?

I have a Java rich client desktop app. that I want to distribute on some computers at work, but I've never done something like this before. People aren't too computer-savy at my workplace and since it is a student job, I won't be there for much…
Jumbala
  • 4,764
  • 9
  • 45
  • 65
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
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
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
1 answer

Java 7 breaks SWT app on OS X using Web Start

We have an application that launches via webstart that uses the SWT library. It's well known that osx requires the swt library to run in the main thread, so we have this in our jnlp:
Gord Shier
  • 91
  • 4
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
1 answer

Why is Java 7 requesting network permissions for a signed application?

Since Java 7 Update 5 my Java Web Start application is requesting the permission to establish connections. The application is signed with a valid certificate. A popup is displayed with the following text: The application has requested permission to…
Emmanuel Bourg
  • 9,601
  • 3
  • 48
  • 76
9
votes
3 answers

The import "javax.jnlp" cannot be resolved

I am learning Java and trying to run some examples using Java web start. However, I cannot seem to find that package javax.jnlp. This same error is haunting me on both windows and linux.I've installed oracle jdk 7 on windows.OpenJDK 1.6 is the…
MadeOfAir
  • 2,933
  • 5
  • 31
  • 39
8
votes
6 answers

Java Web Start broken since JDK 1.7

HERES THE ANSWER: It appears (through our testing) that Java 7 Web Start requires you to host your resources on a server using an SSL certificate. Your cert does NOT have to be signed, but unsigned certs will prompt the client with a trust message…
Robert Petz
  • 2,718
  • 4
  • 23
  • 52
8
votes
2 answers

Java Web Start always caches JNLP file on Windows XP

At my company we are using Java Web Start to distribute client software to the customers. They are using different Windows versions: XP, Vista and 7. We've deployed a version through JWS with minimal problems in the past. Our latest release includes…
NagyI
  • 5,907
  • 8
  • 55
  • 83
8
votes
2 answers

Any Java IDE which can quickly establish a local project based on a remote JNLP file for instant debugging?

Given a remote JNLP which works (all jars are available etc) but you need to run a debug session on the code. Is there any facility that easily allows you to create a local project in ANY reasonably modern IDE which consists of a local copy of the…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347