JDK-5005408 : Swing demo MetalWorks shouldn't have dependability on currnt working directory
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-03-01
  • Updated: 2005-02-28
  • Resolved: 2005-02-28
Related Reports
Duplicate :  
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.

Comments
EVALUATION Name: omR10226 Date: 03/02/2004 Html-files from subdirectory HelpFiles aren't included to Metalworks.jar ====================================================================== I fixed this as part of 6209095. Closing as a duplicate. ###@###.### 2005-2-28 16:31:20 GMT
28-02-2005

WORK AROUND Name: omR10226 Date: 03/02/2004 Copy your Metalworks.jar with a directory HelpFiles. ======================================================================
25-09-2004