JDK-6192959 : (prefs) java.util.prefs.Preferences does not work with web start
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-11-09
  • Updated: 2010-04-02
  • Resolved: 2004-11-24
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
java.util.prefs.Preferences.java class does not load a resource dynamically with Class.forName(..) as Class.forName(..) will not find any resources that are defined in the JNLP file.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
To replace class.forName(..) with Thread.getCurrent().getContextClassLoader()/this.getClass().getClassLoader() as described in the webstart FAQ section.
###@###.### 2004-11-09 20:32:16 GMT

Comments
EVALUATION see 4788410, fixed in 1.4.2_02 ###@###.### 2004-11-24 06:30:01 GMT
24-11-2004