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
14
votes
5 answers

Mini-OSGi that can run in a sandbox (like AppEngine or WebStart)?

I really like the concept of modular bundles as implemented by OSGi. I also like "managed deployment" services like Google AppEngine (for web application) or Java WebStart (for client software). These two ideas seem to complement each-other rather…
Thilo
  • 257,207
  • 101
  • 511
  • 656
14
votes
2 answers

Looking for Webstart Maven Plugin sample application

I am looking for source code for a complete application that uses the Webstart Maven Plugin. Any ideas?
Ralph
  • 31,584
  • 38
  • 145
  • 282
14
votes
3 answers

Is there a .NET equivalent of Java Web Start?

Is there a .NET equivalent of Java Web Start? I want a one-click, from the web, lightweight install for a group of .NET assemblies and resources. Hopefully, the link would continue to keep the user updated with the latest version, similar to what…
Jen S.
  • 4,106
  • 4
  • 35
  • 44
13
votes
4 answers

How to use SQLite database inside jar file?

I can't figure out how to include a SQLite database within a Java .jar file for deployment (via Java WebStart). The database does not need to be updated at runtime... it is essentially a glorified configuration file. Using Eclipse, by the way.
allanberry
  • 7,325
  • 6
  • 42
  • 71
13
votes
1 answer

Java9 JNLP --add-opens not working

I have created a simple test case to test Java 9 Web Start with the new modules. Unfortunately, Java 9 Web Start does not by default support --permit-illegal-access like regular Java 9 does. Java 9 Web Start is suppose to support --add-opens (see…
13
votes
0 answers

Launch JNLP file in MS Edge

I have a ASP.NET site which offers JNLP files for starting Java Web Start applications. I've set them as hrefs in tags to download them. The behaviour I get from different browsers varies: IE11: Auto launch Firefox (45): Auto launch Chrome…
MPelletier
  • 16,256
  • 15
  • 86
  • 137
13
votes
3 answers

Why does Java Web Start say a signed jar file is unsigned?

Java Web Start (JWS) says that it can't launch my application because the jar file is unsigned: Error: Unsigned application requesting unrestricted access to system Unsigned resource: .../dynaccn.jar But the jar file is signed: $ jarsigner…
Steve Emmerson
  • 7,702
  • 5
  • 33
  • 59
13
votes
5 answers

What is the best way to detect whether an application is launched by Webstart

As it was made clear in my recent question, Swing applications need to explicitly call System.exit() when they are ran using the Sun Webstart launcher (at least as of Java SE 6). I want to restrict this hack as much as possible and I am looking for…
ddimitrov
  • 3,293
  • 3
  • 31
  • 46
13
votes
11 answers

What can I do to make jar / classes smaller?

I'm developing a Java Applet, and reducing the size of the binary code will make the applet open faster and will improve the user experience. Is there anything I can do to reduce the size of classes and / or jar files? I want to be sure I'm not…
amarillion
  • 24,487
  • 15
  • 68
  • 80
13
votes
1 answer

Java 7 update 25 makes our java web start application fail with no logging

Since the java 7 update 25 launched by Oracle our application no longer functions. Initially we got some warning about codebase & sercurity tags missing in the Manifest file, which we fixed. The problem we now end up with is that in the Console we…
Wouter
  • 371
  • 2
  • 12
12
votes
2 answers

Webstart runs with wrong version of JRE

I have a Java webstart application that requires Java 7+, so the JNLP has this line: This works on various Windows XP & Windows 7 machines (most of them also having Java 6…
assylias
  • 321,522
  • 82
  • 660
  • 783
12
votes
1 answer

How to make java web start launch automatically without double click on the JNLP

I have a java applet application which is accessed by our customers through our website. Since Microsoft edge and chrome stopped supporting java plug in, we converted the applet to be launched through JNLP and Java Web Start, Unfortunately, In both…
ManKeer
  • 543
  • 2
  • 6
  • 27
12
votes
3 answers

Remote debugging java web start under JVM 1.8

I have a Java Web Start application, which I used to start through a shortcut: "C:\Program Files\Java\jdk1.7.0_67\bin\javaws.exe" -J-Dfile.encoding=UTF-8 -J-Xdebug -J-Xnoagent -J-Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=8200"…
Ivan Tamashevich
  • 291
  • 1
  • 5
  • 14
12
votes
8 answers

Java Webstart intermittant JAR not updating

We use java Webstart to deploy a java application on our intranet. The application receives frequent updates. Once in awhile a user will launch the application from their desktop icon after we have updated the JARs / WAR on the webserver (timestamp…
Chris Kannon
  • 5,931
  • 4
  • 25
  • 35
12
votes
1 answer

How to distinguish 32 bit from 64 bit java version in jnlp files

To start our legacy application, we use java WebStart via a jnlp. We would like to support 64-bit Java clients but one of our libraries is architecture dependent. We thought of doing something like:
Dave
  • 1,417
  • 14
  • 23