Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trouble launching my Java Webstart application using JRE1.6

843802Jun 15 2007 — edited Sep 29 2008
I have been investigating an issue and would appreciate any advice.

We were using JRE 1.5 and our JavaWebStart based apps worked fine. I then installed JRE 1.6 in my PC (windows). Now I can not launch apps using JRE 1.6.

Following are the details:

I downloaded J2SE 1.6 on my machine, Java webstart automatically started using that version to launch application. In order that the apps continued to be launched using JRE 1.5 (without uninstalling J2SE1.6) I unabled 1.6 (under control panel >Java) so that JWS would use JRE1.5, the apps still launched using JRE1.6. I then changed the launch.jnlp file specifying that it used version 1.5 but the apps still launched using 1.6. This the information I found upon investigating:

"Prior to 5.0 Update 6, an applet could specify the version of the JRE on which it would run. With 5.0 Update 6 and later installed on the Windows platform, all applets are executed with the latest version of the JRE."
(http://sunsolve.sun.com/search/document.do?assetkey=1-26-102557-1)

Does anyone know if the above is correct as well for Webstart apps?

So far, to avoid having to add signatures to every jar file for applications accessed via our intranet, we edited the javaws.policy (under Program Files\Java\jre1.5.0_06\lib\security) as follows (the last two lines of code are the ones we added to the generic policy file):
// @(#)javaws.policy	1.7 00/09/18

grant codeBase "file:${jnlpx.home}/javaws.jar" {
    permission java.security.AllPermission;
};

grant codeBase "file:${user.home}/Application Data/Sun/Java/Deployment/cache/javaws/http/Dapps.ourcompany.com/-" {
	permission java.security.AllPermission;
};
Is it true that in JRE1.6, all jar files required to be signed in order for an application to be launched? If so is there a way around it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2008
Added on Jun 15 2007
13 comments
487 views