webstart

What port is used by Java Web Start?

Hi, May I know what port is used by Java Web Start? If I want to connect a Java Web Start client to a Java Web Start server, what port I need to open at the server side so that the client can connect to it? I want to set up a firewall in the server machine but I don't know which port I should open. Thanks. ...

Java WebStart JNLP: Run Different Code in First Run

Hi, We are using WebStart JNLP file to create a shortcut on our users` desktop. The problem is that we would like the code in our jar file to be launched only when the user press the desktop shortcut. However, Java WebStart executes the jar also on the first launch (when we set the desktop icon). Is there any way we can set the icon w...

Webstat Code signing certificate for open source project

Hi, I am looking for a code signing certificate that will be accepted by Java Webstart. It is for the Arianne Project (a ten year old open source project hosted on Sourceforge). Unfortunately being "just" a spare-time open source project means we cannot proof our identity by posting extracts from the register of companies. Another issu...

Netbeans RCP Application and mixed code warning

I have an issue with a signed Netbeans RCP Application distributed via web start. When a user starts the application on a windows system (java 1.6.0_20) the second(!) time, the Mixed Code Warning appears. The NetBeans 6.9 build process doesnt add the "Trusted-Only" or "Trusted-Library" Attributes in the various jar files by default. ...

How to read a directory from a jar file in web start

I have been trying to implement Java WebStart but the problem I'm having is that I need to get a directory from a jar file with no luck... I need to read the following directory: jar:http://localhost:8080/nadeploy/lib/NuevaAldeaFonts.jar!/net/perroazul/nafonts/res When I instatiate it as: new File(new URL("jar:http://...nafonts/res"...

Getting a trusted signature for a Java Web Start application

I'm planning to distribute an application over the internet with Java Web Start, and I'm aware that I'll need to sign the application to enable certain security privileges (network connections, dynamic class loading etc.) What is the best way to create/obtain a signature for this purpose? In particular I'm interested in: Minimising t...

How to use the Java download cache with webstart?

My Java Webstart application download some large resource files. I use: URL url = new URL( "http://....." ); URLConnection uc = url.openConnection(); uc.setUseCaches( true ); uc.getInputStream(); But on the next start the resources are downloaded again. The files occur also not in the resources list of the temporary Internet files. I...

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...

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. ...

Java Web Start applications ask repeatedly for un-existing files

All my application I make with NetBeans as a Java Web Start applications behave quite strangely. When I run them as a normal application, everything works. But when I compile them as java web start apps, they, after the java web start is done with loading, repeatedly ask server for libraries on the wrong place. It doesn't seem to matter...

Run Tomcat from Java Web Start

Is it possible to distribute Tomcat by Java Web Start and run it from there? My application shall run within its own Tomcat server on the machine it is deployed on. Can I package Tomcat and the client application into one Java Web Start archive and run the Tomcat server and the client once the user has downloaded the Java Web Start ar...

logging on windows client machine with Java web start

I am working on a java web start application which needs to log some statements. The clients running this app can be running on windows,mac or linux. I am planning to use log4j for my logging utilities and each log file to be named as , meaning each run of the app should create a new log file. As there is nothing actually getting install...

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? ...

Java Web Start and allowArraySyntax is not set

ref: http://bugs.sun.com/view_bug.do?bug_id=6434149 My problem is that sun.lang.ClassLoader.allowArraySyntax is not set to true when using java webstart (javaws) later than 1.6.0_05 (JRE is 1.6.0_14). I have tried: set JAVAWS_VM_ARGS=-Dsun.lang.ClassLoader.allowArraySyntax=true or manually specifying it: javaws.exe -J-Dsun.la...

Problem Deploying QT Jambi with web start on Mac OS X

I have a Java application, built with eclipse, that uses QTJambi. Running the application from the command line works perfectly. java -d32 -XstartOnFirstThread -jar MyApplication.jar someArg However, trying to deploy the application with WebStart is proving difficult. I've done a whole lot of reading and it seems many people have issu...

Setting up a proxy for java webstart applications

We've decided to use webstart for deploying some of our applications. The problem is, another company will be using our application for quite a number of different employees. Is there any way to have another server be a proxy for our webstart so that they don't need to download the application from our servers more than once? Of course, ...

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 ...

Launch a java webstart application from a java application

How can I launch a java webstart application from a java application? There is Runtime.getRuntime().exec("javaws <URL>"); but it seems not the best way to me. I tried using com.sun.javaws.Main but due to lack of documention I don't know how to do it right. ...

How to change the starting page of the project?

I create a new project and start it. It turns out that the controller Home is called with the action is default i.e. Index - this means Controllers/HomeController.Index() is called. The view displayed by this action is defined in this method - i.e. Views/Home/Index.apsx. I want to change this starting behavior to be another controller a...