dcsimg
How does JRE locate standard system resource bundles?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sergey_Ushakov
Posted On:   Monday, November 5, 2001 03:20 AM

I try to deploy java apps over network along with network-based JRE without installing JRE on every workstation. Most apps behave pretty well this way, but Swing ones throw an exception: java.util.MissingResourceException: Can't find bundle for base name javax.swing.plaf.basic.resources.basic, locale ru_RU at java.util.ResourceBundle.throwMissingResourceException(Unknown Source) at java.util.ResourceBundle.getBundleImpl(Unknown Source) at java.util.ResourceBundle.getBundle(Unknown Source) at javax.swing.plaf.basic.BasicLookAndFeel.loadResourceBundle(Unknown Source) at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(Unknown Source) at com.sun.java.swing.plaf.windows.WindowsLookAndFeel.initCom   More>>

I try to deploy java apps over network along with network-based JRE without installing JRE on every workstation. Most apps behave pretty well this way, but Swing ones throw an exception:


			
java.util.MissingResourceException: Can't find bundle for base name javax.swing.plaf.basic.resources.basic, locale ru_RU
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at javax.swing.plaf.basic.BasicLookAndFeel.loadResourceBundle(Unknown Source)
at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel.initComponentDefaults(Unknown Source)
at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(Unknown Source)
at javax.swing.UIManager.setLookAndFeel(Unknown Source)
at javax.swing.UIManager.setLookAndFeel(Unknown Source)
[...]

This exception is not thrown if I launch java.exe from the directory JRE was installed in, but it happens every time when I run it from its exact copy elsewhere!


How does JRE get/configure these bundles after being launched?

   <<Less
About | Sitemap | Contact