Are you 100% sure you loaded the JNLP with Java 5? Because the Web
Start class loader changed from which class it inherits in Java 6. In
Java 6, it's not possible to easily get a reference to the JAR file
from which a resource is loaded (it returns a URL to the original web
site instead).
Also, JNLPCachedJarURLConnection is only available in Java 6. I
suspect you'll run into this problem on all platforms using Java 6. I
did. I have a terrible hack to get around this (setAccessible(true)
to get the underlying files).
Regards,
Brendon McLean.
On 25 Sep 2008, at 12:40, Emmanuel Puybaret wrote:
Hi,
I tested the new Java 1.5.0_16 version released yesterday, and
miserably I've got a regression on Java Web Start version of Sweet
Home 3D available at http://sweethome3d.sourceforge.net/SweetHome3D.jnlp
On a MacBook Core Duo and an Imac G5, some resource files aren't
found and some belonging to the same JAR are found! But on an iMac
Core 2 Duo, everything works fine (with Java 5 as default Java
version for applications).
You may test this bug easily in Sweet Home 3D : images are not found
in help pages, meaning JEditorPane can't resolve relative paths, and
furniture added to home appears as red in 3D view at bottom right,
meaning the URL of the 3D model couldn't be resolved. On the
contrary, in furniture tree, the furniture icons are correctly
displayed even if the URL of these images are built the same way as
the URL of the 3D models ?!?
These URLs are built with Class#getResource method (then they are
handled by instances of JNLPCachedJarURLConnection in Java Web
Start). And one very astonishing thing is that these URLs don't
mention any file and don't have a ! separator.
For example, an URL is "jar:com/eteks/sweethome3d/io/resources/
door.obj" instead of "jar:file:/Users/manu/Developer/Java/
SweetHome3D/deploy/lib/SweetHome3D.jar!/com/eteks/sweethome3d/io/
resources/door.obj".
By the way, I noticed also that
"sun.swing.enableImprovedDragGesture" property doesn't work on an
iMac Core 2 Duo / Java 5, but works on a MacBook Core Duo. :-(
Are the Intel 32 bit / Intel 64 bits versions so different ???
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
_______________________________________________
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