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
8
votes
3 answers

Jenkins Windows slave thinks my cert is invalid

Following the docs to use Java Web Start and I'm up to the point where I'm running this command on the slave to connect to the master: java -jar agent.jar -jnlpUrl https://my-server.com:8888/computer/myslave/slave-agent.jnlp -secret sdfsdfsdfsdf…
red888
  • 27,709
  • 55
  • 204
  • 392
8
votes
1 answer

Unable to debug JNLP with Java 8

I have tried all ways running application as 1) javaws -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9123 My.jnlp 2) setting the same option in JAVA_TOOL_OPTIONS 3) setting the same option in JAVAWS_VM_ARGS 4) setting the…
user93353
  • 13,733
  • 8
  • 60
  • 122
8
votes
2 answers

How to pass the Java 9 '--permit-illegal-access' flag to a Webstart application?

I got my application running with JRE build 9-ea+163 by passing the --permit-illegal-access flag to the VM. Now I want to start the app with Java Webstart. A first try with javaws -J--permit-illegal-access does not work. I get the same…
Miro
  • 133
  • 2
  • 7
8
votes
2 answers

How to communicate between browser and Java Web Start applet

Current situation We currently use an applet to perform some operations, after which it redirects the current page. In its core, you could see the applet as the following: public class ExampleApplet extends Applet { @Override public void…
Jaims
  • 1,515
  • 2
  • 17
  • 30
8
votes
2 answers

Unknown SecurityExcetion from java webstart app

We saw this exception from 3 different customer installs today (4/14/2015) in the span of a 30 minutes. java.lang.SecurityException: Can not verify security pack jar com.sun.deploy.util.SecurityBaseline.verifyJar(Unknown…
Chris Holt
  • 655
  • 1
  • 6
  • 19
8
votes
1 answer

Why does Java WebStart application refuse to start if JNLP url contains %?

I've noticed a curious thing while trying to dynamically generate JNLP files based on URL parameters passed to a HTTP server. If I have something like this in my HTML code, it works:
biziclop
  • 48,926
  • 12
  • 77
  • 104
8
votes
9 answers

Java web start - Unable to load resource

I've got a jar that loads great with java web start when I browse through the IP address of the server. Once I try the server name instead I get the following exception: com.sun.deploy.net.FailedDownloadException: Unable to load resource: at…
CD..
  • 72,281
  • 25
  • 154
  • 163
8
votes
4 answers

In java web start where does the jar file get downloaded to?

As per Java web start where does the jar file get downloaded on a client machine?
ria
  • 7,904
  • 11
  • 39
  • 46
8
votes
2 answers

Automate the webstart process

The requirement is to automate the java webstart process. After clicking the JNLP file, its loading and displaying the below image There is no option for trust always here. I am aware of in Java 7 Update 51, java tighten the security. So I have…
Nageswaran
  • 7,481
  • 14
  • 55
  • 74
8
votes
5 answers

Do I have to explicitly call System.exit() in a Webstart application?

Recently I converted a Swing application to Webstart. The process was pretty straightforward, but I found that after I close all windows, my application's JVM did not terminate. The thread dump showed that there are a couple of non-daemon threads,…
ddimitrov
  • 3,293
  • 3
  • 31
  • 46
8
votes
4 answers

java jre 7u45 breaks classloader.getResources()?

I have code to iterate over the results of classLoader.getResources("META-INF/MANIFEST.MF") to return the list of jars on the class path. This worked fine from 1.6.0_18 all the way to 1.7.0_40. Now 1.7.0_45 breaks this by showing a security…
Chris Holt
  • 655
  • 1
  • 6
  • 19
8
votes
1 answer

Adding attributes to a jar file's manifest using Gradle

I'd like to bundle some jar files built with Gradle 1.6 as part of a Java webstart application. I can currently sign the jars correctly with a certificate and specify the codebase and permissions attributes for the produced artifacts by using the…
Jesús Zazueta
  • 1,160
  • 1
  • 17
  • 32
8
votes
1 answer

Java Web Start - load native dependency with another native dependency

I am using Java Web Start to launch a Java application that depends on some third party native libraries. These native libraries then subsequently load another native library (commonLib) as their dependency using LoadLibrary/dlopen. When not using…
Karel Petranek
  • 15,005
  • 4
  • 44
  • 68
8
votes
1 answer

java.lang.NoClassDefFoundError: Could not initialize class sun.security.ec.SunEC (occured after recent JRE update)

After the latest JRE (1.7.0_25) was updated my application won't launch from webstart as it used to. I haven't deployed any newer jar files or changed the JNLP file on the web server but I cannot launch the app from webstart. It runs fine from the…
Matt C
  • 91
  • 1
  • 1
  • 3
8
votes
3 answers

jnlp webstart nativelib: how to specify different architecture for os

in a java webstart file (jnlp) you can specify the nativelib tag to load binaries. you can also specify toload different ones for different operating systems by also specifying the os attribute. for example:
clamp
  • 33,000
  • 75
  • 203
  • 299