Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4123285

getAvailableLocales() doesn't work in Applet

XMLWordPrintable

    • 1.1.6
    • generic
    • generic
    • Verified

      The getAvailableLocales() methods don't work in an Applet.

      % /usr/local/java/jdk1.1.6/solaris/bin/appletviewer AvailLocaleTestApplet.html
      Collecting locales...
      java.lang.ExceptionInInitializerError
      at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
      at sun.applet.AppletPanel.run(AppletPanel.java:287)
      at java.lang.Thread.run(Thread.java)
      "Restart" here
      Collecting locales...
      java.lang.NoClassDefFoundError: java/text/resources/LocaleData
      at
      at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
      at sun.applet.AppletPanel.run(AppletPanel.java:287)
      at java.lang.Thread.run(Thread.java)

      The same applet works OK on JDK1.1.5.

      On JDK1.2beta3, using hjb1.1.2,

      % env JDK_HOME=/usr/local/java/jdk1.2/solaris /usr/local/java/hjb1.1.2/solaris/bin/hotjava -log /dev/tty
      HOTJAVA_HOME is set to /net/javasoft/export/java/bin/hjb1.1.2/solaris
      [Starting HotJava]
      [Initializing globals]
      [Creating frame]
      [Loaded DTD html32 in 92ms]
      [Loading: /home/okutsu/.hotjava/urlpool]
      Warning:
          Name: HorScrollBar
          Class: XmScrollBar
          The scrollbar page increment is less than 1.

      Collecting locales...
      sunw.hotjava.applet.AppletSecurityException
              at sunw.hotjava.security.CommonSecurity.checkRead(CommonSecurity.java:360)
              at java.io.File.exists(File.java:503)
              at java.text.resources.LocaleData.getClassList(LocaleData.java:164)
              at java.text.resources.LocaleData.<clinit>(LocaleData.java:121)
              at
              at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
              at sunw.hotjava.applet.AppletPanel.processEvent(AppletPanel.java:324)
              at sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:297)
              at java.lang.Thread.run(Thread.java:490)
      sunw.hotjava.applet.AppletSecurityException
              at sunw.hotjava.security.CommonSecurity.checkRead(CommonSecurity.java:360)
              at java.io.File.exists(File.java:503)
              at java.text.resources.LocaleData.getClassList(LocaleData.java:164)
              at java.text.resources.LocaleData.<clinit>(LocaleData.java:121)
              at
              at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
              at sunw.hotjava.applet.AppletPanel.processEvent(AppletPanel.java:324)
              at sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:297)
              at java.lang.Thread.run(Thread.java:490)
      null:

      java.lang.ExceptionInInitializerError
              at
              at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
              at sunw.hotjava.applet.AppletPanel.processEvent(AppletPanel.java:324)
              at sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:297)
              at java.lang.Thread.run(Thread.java:490)

            rgillamsunw Richard Gillam (Inactive)
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: