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

Swing demo MetalWorks shouldn't have dependability on currnt working directory

    XMLWordPrintable

    Details

      Description

      Currently it is mandatory to run JFC Metalworks to be executed from the folder
      $JAVA_HOME/demo/jfc/Metalworks in order to work it properly.

      This is the only demo which have this dependability in JFC.
      Steps to reproduce:
      1) Execute demo Metalworks
      2) Help --> Open help Window
      3) See the console, It will have following exception
      "java.io.FileNotFoundException: ../HelpFiles/toc.html (No such file or directory)"

      Root cause of this problem is, Executable program needs some html files, So probably it will be good idea to keep resources like html, gif in jar file and thus by this way we can demo users how to access resources like html from jar
      file which is under execution.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shickeysunw Shannon Hickey (Inactive)
              Reporter:
              hsinghsunw Hemant Singh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: