[kepler-dev] file references inside jar files

Dan Higgins higgins at nceas.ucsb.edu
Wed Aug 11 21:46:50 PDT 2004


Hi All,
    One problem we have been having in the Java web start implementation 
is how to reference data files that are only strored inside jar files. 
In particular, when the BiodivFileExample is called from the index page, 
it is loaded from a jar and the file it reads cannot be located. It 
looks like a fix that avoid absolute path problems is to use a jar url. 
For example, the data file that is in the kepler-configs.jar file can be 
referenced as:

jar:file:/ptII4.0.1/lib/kepler-configs.jar!/ptolemy/configs/kepler/workflows/eco/speciesCount.dat

A little long, but it seems to work!

Dan



More information about the Kepler-dev mailing list