Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Webstart application can't find ressource after installation of Java for Mac OS X 10.5 Update 2



This issue is a known Sun issue with the 1.5.0_16 deploy classes : http://bugs.sun.com/view_bug.do?bug_id=6746185

We found that on Windows in order to use the 1.5.0_16 deploy classes the 1.6 JRE has to be removed.

So with JRE 1.6.0 removed we were able to reproduce this issue with Sweet Home 3D on Windows (the help images do not load), as well as another game called Pox Nora.

Thank you for your tests.
I tested Sweet Home 3D with JRE 1.5.0_16 on Windows and Linux and had also the resource problem.
I also tested it with JRE 1.5.0_15 and it works.


We believe we have isolated the pattern that is broken with the 1.5.0_16 webstart. This problem happens
when you try to get a new URL to a resource using an existing URL as shown below :
URL resourceBase = MyClass.class.getResource("myfile");
URL newURL = new URL(resourceBase, "anotherfile");
The workaround it to use Class.getResource instead :
URL resourceBase = MyClass.class.getResource("myfile");
URL newURL = MyClass.class.getResource("anotherfile");
This works reliably on all platforms and all versions.
Sorry but I don't think this workaround will help me in Sweet Home 3D. :-(
- I can't control the creation of relative URLs in the JOptionPane instance used to display help.
- I don't create relative URLs to 3D model files:
See line 56 in ResourceURLContent class ( http://sweethome3d.cvs.sourceforge.net/sweethome3d/SweetHome3D/src/com/eteks/sweethome3d/tools/ResourceURLContent.java?revision=1.5&view=markup ) :
resourceClass.getResource(resourceName)
The strange thing is that this same statement works for the URLs pointing to the icons displayed in furniture tree.


Any other ideas ?

Best regards
--
Emmanuel PUYBARET
Email  : email@hidden
Web    : http://www.eteks.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.