wood burning stoves 2.0*
The moose likes JNLP and Web Start and the fly likes A few general web start issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "A few general web start issues" Watch "A few general web start issues" New topic

A few general web start issues

Mich Robinson
Ranch Hand

Joined: Jun 28, 2009
Posts: 250
I'm finding it difficult getting a proper icon to display on a users desktop (mostly windows).
If I've already ran the program can I change the icon so it will change on the users desktop?
If a user has run the application but not installed it. Can they install it if they then run it again?
Why if a user has installed an application on their PC does it keep showing a popup asking them are they sure they really want to run it???

I must admit I find web start to be extremely confusing and there isn't a lot of useful info out there.

Thanks for any help.


EDIT : it's for my Alien Swarm arcade game

Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Jacob Anawalt
Ranch Hand

Joined: Oct 27, 2010
Posts: 32

It is my experience that if you update the icon file and the jnlp file, the changes are picked up on the next run of the web-start launched program as long as it is allowed to check with the server for changes. I have used this to change the icon after it has already appeared. Sometimes on Windows you can run into icon caching issues and may need to remove and recreate the shortcuts.

I'm not sure what you mean by running installing a webstart application or not. Are you referring to creating shortcuts or working offline?

The only "are you sure" I can think of offhand has to do with a program that wants all-permissions and is either not signed or the user has not yet accepted to trust the signed code. Exact wording can help with the search for the cause of the problem.

Java Web Start is a light-weight deployment technology that borrows from the Browser paradigm for caching and linking. It is quick to get going as long as you aren't doing anything complicated.

Mich Robinson
Ranch Hand

Joined: Jun 28, 2009
Posts: 250
I used to have an icon appear but I've now lost the icon. I mess around to often with the images etc and didn't notice it go otherwise I'd just rollback the changes. I can't seem to get an image to appear on the desktop now.

When working offline.

It's a security warning popup saying "Do you want to run this application. It happens each time I run it even after I have installed the app offline. I'd of thought that once a user says yes I want to run it and bothers to install the app then they're unlikely to want to see the popup appear each time they run.

I'd love to be able to get the persistence stuff working as well but I just gave up in the end. I simply tried what was in the tutorials but nothing seemed to work for me

Many thanks for replying.

Jacob Anawalt
Ranch Hand

Joined: Oct 27, 2010
Posts: 32

Do you get no shortcut then, or a shortcut with the default coffee cup icon or one with a blank paper icon?

What is in your JNLP shortcut section in information? Eg.

<!-- Prefer a shortcut for online operation -->
<shortcut online="true">
<!-- create desktop shortcut -->
<!-- create menu item for this app under the major heading My Stuff -->
<menu submenu="My Stuff"/>

The message I was envisioning is about accepting the security certificate. It looks something like this:


Maybe your code isn't signed at all. In that case, there isn't a certificate to accept to avoid being asked each time the program is launched.

What is in your JNLP security section? Eg.

I agree. Here's the link: http://aspose.com/file-tools
subject: A few general web start issues