Java Tips Weblog

  • Blog Stats

    • 1,788,320 hits
  • Categories

  • Archives

Web Start Info

For some of the blog entries I decided to create a Java Web Start demo to demonstrate some of the capabilities of the classes presented in the blog. This concept seemed to work while I was using JDK6. However, when I first updated to JDK7 I started to get an error dialog blocking the loading of the Java Web Start demo:

webstart1

While investigating why the application was blocked by security settings, I determined that the default security setting in the Java Control Panel had been increased in JDK7. In JDK6 the security setting was set to Medium and in JDK7 it now defaulted to High.

In Windows you can verify this by going to the Control Panel and then start the Java application. When the Java Control Panel loads you can click on the Security tab to see the setting.

I’m guessing, most people will not want to change the security setting so I searched for an alternative solution. The best solution would be for me to have the jar file signed by a well known Certificate Authority. I investigated this process but found out that you need to pay an annual fee to the Certificate Authority. Given that I just do this blog for fun, I decided not to incur this expense.

The other solution I found was to give applications from my website a special exemption. This is the solution I am using and if you wish to take advantage of the Java Web Start demos, this is the approach you will need to use as well. These permission are given via the Java Control Panel (discussed above). Again you will need to go to the Security tab. Once on the Security tab you will find an Exception Site List. You simply need to add:

  • http://www.camick.com

to this list and now you should be able to load any Java Web Start application found in this blog.

For a while things worked fine, however, I am still using JDK7 and recently noticed that JDK7 Runtime is considered out of date. So now when you attempt to load a Java Web Start demo I get the following dialog:

webstart2

I just click the Allow button and now Java Web Start starts to load the application. However, that is not the end of it, there is still one more dialog to go:

webstart3

I just click on the Run button and finally the Java Web Start demo executes.

So there you go. These are the steps you will need to go through to execute the Java Web Start demos. Adding my website to the Exception Site List will only have to be done once. You will have to decide if all this trouble is worth while.

In the future I may decide to update all the old postings with the actual source code used to create the Java Web Start demos, but for now I will keep it simple and leave the site as is.

I thought using Java Web Start was a good idea, but it is turning out to be a pain in the butt…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: