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

Win2K: Color profiles can't be loaded when jre is installed into the default dir

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3.1, 1.4.0
    • Fix Version/s: None
    • Component/s: deploy
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_98, windows_2000

      Description

      I'm not sure if this is the right subcategory so please recategorize if
      appropriate.

      How to reproduce the bug:
       - install j2sdk 1.3.1 into it's default directory (something like c:/Program Files/JavaSoft/jre/1.3.1)
       - run attached test (Test.html and Test.java) under plug-in (IE or Netscape, doesn't matter)
         The following exception will be thrown in the java console:
      Java(TM) Plug-in: Version 1.3.1
      Using JRE version 1.3.1beta Java HotSpot(TM) Client VM
      User home directory = E:\Documents and Settings\tdv

      Proxy Configuration: Manual Configuration
           Proxy: webcache-cup:8080
           Proxy Overrides: <local>

      Warning: default mime table not found: g:\java\JDK13~1.1\lib\content-types.properties
      security properties not found. using defaults.

      java.lang.IllegalArgumentException: Can't load standard profile
              at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:794)
              at java.awt.color.ColorSpace.getInstance(ColorSpace.java:292)
              at Test.<init>(Test.java:8)
              at java.lang.Class.newInstance0(Native Method)
              at java.lang.Class.newInstance(../../../src/share/classes/java/lang/Class.java:237)
              at sun.applet.AppletPanel.createApplet(AppletPanel.java:579)
              at sun.plugin.AppletViewer.createApplet(Unknown Source)
              at sun.applet.AppletPanel.runLoader(AppletPanel.java:515)
              at sun.applet.AppletPanel.run(AppletPanel.java:293)
              at java.lang.Thread.run(../../../src/share/classes/java/lang/Thread.java:484)

      Exception:java.io.FileNotFoundException: g:\java\JDK13~1.1\lib\flavormap.properties (The system cannot find the file specified) while loading default$

        Note that not only color profiles can't be loaded, flavormap.properties and
        security properties were not found as well.

        The same applet works fine when run as application and applet with appletviewer.
        If one installs the jre to almost the same location but uses /jre/131 instead of /jre/1.3.1
        (so there are no dots in the last dir name) the test doesn't throw the exception.

        The same applet works fine on Win9x/NT, so this problem is a Win2K specific.

        The bug does not manifest on jdk1.3 even when it's installed into 1.3.1 directory,
        so it's a regression.

        For some additional details on this please look at the bug id
          4394607 JCK: api/java_awt/java2d/color/ICC_ColorSpace/index.html fails on Windows
        which is a JCK failure.

      dmitri.trembovetski@eng 2001-01-08
      --------------------------------------------------------------------------------

      I have to re-open this bug because the there's still a failure on Window98
      I got the applet that'll cause the failure. However the failure only manifest
      when run in a browser such as IE or Netscape with JDK1.4 plug-in. It will not
      fail if run with an appletviewer.

      Please see the test.jar which has the source code as well as the applet HTML.

      Roger Pham 11/6/2001

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mafishersunw Margarita Fisher (Inactive)
                Reporter:
                tdv Dmitri Trembovetski (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: