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

javah -old fails on Linux OS's

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.1
    • tools
    • generic
    • linux

      This bug is specific to Linux OS's only.

      Using build07 of Hopper, "javah -old" option fails to generate the JDK1.0 - style header file on Linux. It throws the following exception :

      ********************
      java.util.MissingResourceException: Can't find bundle for base name com.sun.tools.javah.resources.Linux_i386, locale en_US
      at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
      at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
      at com.sun.tools.javah.Util.initPlatform(Util.java:159)
      at com.sun.tools.javah.Util.getPlatformString(Util.java:141)
      at com.sun.tools.javah.OldHeaders.write(OldHeaders.java:89)
      at com.sun.tools.javah.Gen.run(Gen.java:149)
      at com.sun.tools.javah.Main.run(Main.java:172)
      at com.sun.tools.javah.Main.main(Main.java:41)
      Error loading resources. Please file a bug report.
      *******************


      To Reproduce the bug:
      ======================
      1. Make a directory and copy the attached file "File.java" into this directory.
      2. Compile the file

      "javac File.java"
      3. Run the following command on the compiled file :

      " javah -old File"

      Here is the exception which is being thrown:

      ******************************************************************************
      java.util.MissingResourceException: Can't find bundle for base name com.sun.tools.javah.resources.Linux_i386, locale en_US
      at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
      at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
      at com.sun.tools.javah.Util.initPlatform(Util.java:159)
      at com.sun.tools.javah.Util.getPlatformString(Util.java:141)
      at com.sun.tools.javah.OldHeaders.write(OldHeaders.java:89)
      at com.sun.tools.javah.Gen.run(Gen.java:149)
      at com.sun.tools.javah.Main.run(Main.java:172)
      at com.sun.tools.javah.Main.main(Main.java:41)
      Error loading resources. Please file a bug report.
      ******************************************************************************

      Important Notes:
      ================
      1. Only occurs on Linux OS's
      2. It only fails with b07. Passes till b06 of Hopper




            gafter Neal Gafter (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: