jnlp

Tomcat + Hibernate + JNLP

Hello, I have a small question, I'm trying to build and application that run's on Tomcat 6.0.28. My application is a JNLP that has a swing frame. The deployment works fine, was able to delopy the JNLP in Tomcat and to access it after that from a browser. The JFrame show's up when I execute the JAR. But the problem is that I have a M...

Referencing external text data file in JNLP configuration.

Hi, I'm trying to figure out how to include a reference to a external data file (in text form) that I want distributed along with my application via Web Start (JNLP). Sifting through the documentation for the JNLP structure, I see that you can include references to JAR, nativelib, and extensions - however, I don't see a means to include...

Java webstart max-heap-size causes JVM cannot be started

We use java webstart on the client side for a java swing based aplication. Recently we have been experiencing a weird "Cannot start java Virtual machine " error when clicking in the jnlp link. We soon find out its because the max-heap-size setting in the jnlp file was set to 1024m whereas most of the clients PC only have 1 gb physical ...

Reliable approach for loading resources in Java / JNLP

I'm writing a Java application that needs to access several resources in a .jar file that is run over JNLP. While the application works fine in my development environment (Eclipse) it doesn't work when executed through JNLP, apparently because it can't find the resource file in the jar. I've checked the resource file and the resources a...

How can I use JNLP to download Java 7?

I'm developing a rich Internet application that requires a Java 7 platform. How can its associated JNLP file ensure the installation of that platform? I've tried several variations on the following in the JNLP file (mostly playing with the URL in the "href" attribute): <jnlp ...> ... <resources> <java version="1.7+" href="http...

Combination of Launch4J and Java Web Start?

I have a working JNLP application which I need to distribute to various non-technical end users. If the user's machine has a recent JVM installed, everything is fine. They just double-click the JNLP file I send them and Java Web Start does the rest. Now I would like to distribute something that works with or without a JVM, e.g. a .exe...

Accelerating application loading through staged downloads

I'm developing a game that I will distribute using Java Web Start / JNLP. Currently the fully packaged .jar is around 11mb, which is not too bad, but I'd still like to get the application responsive as quickly as possible, i.e. before everything is downloaded - in particular I'd like a splash screen during loading, then allow other reso...

Passing codebase value from main jnlp to auxillary one?

I am working on a web start application which uses two jnlp's- one main and the other auxillary. The codebase tag for the jnlp is set through the environment variables at the runtime. But somehow when i run the application, the main jnlp has the correct codebase setup but the Auxillary one fails to replace the environment variables with ...

Browser downloads jnlp on Java Web Start. How to prevent it?

When I click on a link to "web start" my java application, browser downloads jnlp file which I should execute afterwards. Is there any way to force browser to execute jnlp right after the download completes, or event better, to make the whole process transparent, so user just confirms that he wants to launch the application? Thanks. ...

Get PID of javaws jnlp applet under linux

I'm trying to run a java (jnlp) applet from bash and get the PID of the created process. Using this command : javaws myapplet.jnlp > /dev/null & echo $! This returns a pid of the first instance of java that loads the jnlp; i guess, but has nothing to do with the final java process running. Any clues ? Found out the original javaws...

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 these options. Is there a good way of achieving this? ...

Associating .jnlp with javaws

Hi, I have an application that is being deployed via JNLP on Windows XP. I have created a shortcut on the user desktops pointing to http://myserver/myapp.jnlp. In the folder options on XP, I have set the jnlp extension to use javaws. Despite this, the desktop shortcut still appears as a web link (using the browser icon) and when clicked...

javax.jnlp.DownloadServiceListener not receiving many callbacks... or more than one...

I only see one JOptionPane get spawned with the following implementation...: public class DownloadServiceListenerImpl implements DownloadServiceListener { static DownloadServiceWindow win; /** * This class must have a no-arg constructor per the API */ public DownloadServiceListenerImpl() { } @Override public void downloadFa...

Text File + JNLP

Hi, I’m trying to figure out how to include a reference to a external data file (in text form) that I want distributed along with my application via Web Start (JNLP). Sifting through the documentation for the JNLP structure, I see that you can include references to JAR, nativelib, and extensions – however, I don’t see a means to include...

How do I refer to another property in a jnlp?

<property name="netbeans.user" value="${user.home}/.foo"/> <property name="derby.system.home" value="netbeans.user"> I want derby.system.home property to be the same as the above one. How do I achieve that other than by expliciting the same CDATA (so by value)? I guess what I'm asking is: how can I let the value of an element ...

JavaFX Scripts do not seem to work on other computers

When I bring my app to another computer the two buttons that should either open a file browser, or take in a file path to open a file both don't work. I don't understand why. It works perfectly fine if I compile it within Netbeans. package maxsublistsum; import javax.swing.JFileChooser; import javax.swing.filechooser.FileFilter; impor...

Dynamic JNLP Generation and invocation from Excel

I have an application which is invoked via Java Webstart. Opening it via the Webstart link works without any issue. I also have an application based on Excel that generates files (via vba) which can then be opened by the program that starts via Webstart. What I would like to do is have a button that invokes the Webstart application and...

Java Webstart not working offline (NoRouteToHostException/UnknownHostException)

I want to configure my webstart app/jnlp so that if no internet connection is available, it would start from cache. Nevertheless, when I disconnect from the internet, I always get a NoRouteToHostException or UnknownHostException exception, despite the configuration below. I've set the offline-allowed and update tags/attributes properly ...

How to get jnlp href attribute at run time in Java web Start app (similar to BasicService.getCodeBase())?

I have a single application that I am deploying via Java web Start. I have several different jnlp files for different launch scenarios. I am using DownloadService2 to check for updates periodically. When an update is available, I prompt the user. If they elect to update, I launch a new instance of javaws using Runtime.getRuntime().ex...

Java Web Start runtime update notification - checking for update with DownloadService2

I am deploying an application using Java Web Start and would like to provide in-app notification of update availability. I'm using DownloadService2 to check for update availability, but the return value is always an empty array. I'm doing something like: {code} Basic Service bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicSe...