I'm running Win2K SP2, but there are similar problems on Solaris (with
non-english locale).
Set user locale (Control Panel/Regional Settings/General tab)
to any non-english locale (I've tried Russian and Japanese)
and try to run any application (SwingSet2, for example) on Merlin b82 with
java -jar SwingSet2.jar
Exception in thread "main" java.lang.NoClassDefFoundError: SwingSet2
Try to run the applet:
appletviewer SwingSet2.html
Can't find bundle for base name sun.awt.windows.awtLocalization, locale ru_RU
Using default MenuItem font
java.lang.StackOverflowError
at java.io.FilePermission$1.run(FilePermission.java:211)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(FilePermission.java:206)
at java.io.FilePermission.<init>(FilePermission.java:256)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:701)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:68)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:151)
at sun.applet.AppletClassLoader.resourceExists(AppletClassLoader.java:32
2)
at sun.applet.AppletClassLoader.findResources(AppletClassLoader.java:338
)
at java.lang.ClassLoader.getResources(ClassLoader.java:786)
at sun.misc.Service$LazyIterator.hasNext(Service.java:242)
at java.nio.charset.Charset.lookup(Charset.java:301)
at java.nio.charset.Charset.isSupported(Charset.java:324)
at java.lang.StringCoding.lookupCharset(StringCoding.java:81)
at java.lang.StringCoding.encode(StringCoding.java:353)
at java.lang.StringCoding.encode(StringCoding.java:370)
at java.lang.String.getBytes(String.java:576)
at java.io.Win32FileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(File.java:516)
at java.io.FilePermission$1.run(FilePermission.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(FilePermission.java:206)
at java.io.FilePermission.<init>(FilePermission.java:256)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:701)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:68)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:151)
at sun.applet.AppletClassLoader.resourceExists(AppletClassLoader.java:32
2)
at sun.applet.AppletClassLoader.findResources(AppletClassLoader.java:338
)
at java.lang.ClassLoader.getResources(ClassLoader.java:786)
at sun.misc.Service$LazyIterator.hasNext(Service.java:242)
at java.nio.charset.Charset.lookup(Charset.java:301)
at java.nio.charset.Charset.isSupported(Charset.java:324)
at java.lang.StringCoding.lookupCharset(StringCoding.java:81)
at java.lang.StringCoding.encode(StringCoding.java:353)
at java.lang.StringCoding.encode(StringCoding.java:370)
at java.lang.String.getBytes(String.java:576)
at java.io.Win32FileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(File.java:516)
at java.io.FilePermission$1.run(FilePermission.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(FilePermission.java:206)
at java.io.FilePermission.<init>(FilePermission.java:256)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:701)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:68)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:151)
at sun.applet.AppletClassLoader.resourceExists(AppletClassLoader.java:32
2)
at sun.applet.AppletClassLoader.findResources(AppletClassLoader.java:338
)
at java.lang.ClassLoader.getResources(ClassLoader.java:786)..
...
Both examples work fine if locale is English.
They also work fine with b81 even with non-english locale.
###@###.### 2001-10-04
non-english locale).
Set user locale (Control Panel/Regional Settings/General tab)
to any non-english locale (I've tried Russian and Japanese)
and try to run any application (SwingSet2, for example) on Merlin b82 with
java -jar SwingSet2.jar
Exception in thread "main" java.lang.NoClassDefFoundError: SwingSet2
Try to run the applet:
appletviewer SwingSet2.html
Can't find bundle for base name sun.awt.windows.awtLocalization, locale ru_RU
Using default MenuItem font
java.lang.StackOverflowError
at java.io.FilePermission$1.run(FilePermission.java:211)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(FilePermission.java:206)
at java.io.FilePermission.<init>(FilePermission.java:256)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:701)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:68)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:151)
at sun.applet.AppletClassLoader.resourceExists(AppletClassLoader.java:32
2)
at sun.applet.AppletClassLoader.findResources(AppletClassLoader.java:338
)
at java.lang.ClassLoader.getResources(ClassLoader.java:786)
at sun.misc.Service$LazyIterator.hasNext(Service.java:242)
at java.nio.charset.Charset.lookup(Charset.java:301)
at java.nio.charset.Charset.isSupported(Charset.java:324)
at java.lang.StringCoding.lookupCharset(StringCoding.java:81)
at java.lang.StringCoding.encode(StringCoding.java:353)
at java.lang.StringCoding.encode(StringCoding.java:370)
at java.lang.String.getBytes(String.java:576)
at java.io.Win32FileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(File.java:516)
at java.io.FilePermission$1.run(FilePermission.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(FilePermission.java:206)
at java.io.FilePermission.<init>(FilePermission.java:256)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:701)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:68)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:151)
at sun.applet.AppletClassLoader.resourceExists(AppletClassLoader.java:32
2)
at sun.applet.AppletClassLoader.findResources(AppletClassLoader.java:338
)
at java.lang.ClassLoader.getResources(ClassLoader.java:786)
at sun.misc.Service$LazyIterator.hasNext(Service.java:242)
at java.nio.charset.Charset.lookup(Charset.java:301)
at java.nio.charset.Charset.isSupported(Charset.java:324)
at java.lang.StringCoding.lookupCharset(StringCoding.java:81)
at java.lang.StringCoding.encode(StringCoding.java:353)
at java.lang.StringCoding.encode(StringCoding.java:370)
at java.lang.String.getBytes(String.java:576)
at java.io.Win32FileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(File.java:516)
at java.io.FilePermission$1.run(FilePermission.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(FilePermission.java:206)
at java.io.FilePermission.<init>(FilePermission.java:256)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.isDirectory(File.java:701)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
.java:68)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
nection.java:151)
at sun.applet.AppletClassLoader.resourceExists(AppletClassLoader.java:32
2)
at sun.applet.AppletClassLoader.findResources(AppletClassLoader.java:338
)
at java.lang.ClassLoader.getResources(ClassLoader.java:786)..
...
Both examples work fine if locale is English.
They also work fine with b81 even with non-english locale.
###@###.### 2001-10-04
- duplicates
-
JDK-4510701 java fails to launch in some non-English locales (b82)
-
- Resolved
-
- relates to
-
JDK-4510751 b82:appletviewer doesn't work on ja and throws java.lang.StackOverflowError
-
- Closed
-