[kepler-dev] [Bug 3949] - Get the installer working with the new build system

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Mon Apr 20 16:46:59 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3949





------- Comment #3 from cxh at eecs.berkeley.edu  2009-04-20 16:46 -------
Can't you do something like:
specURL = Thread.currentThread().getContextClassLoader()
                            .getResource(spec);

Or 
this.getClass().getClassLoader().getResource(spec);

We use the code above in ptolemy.actor.gui.MoMLApplication and similar
code in ptolemy.util.FileUtilities to load resources in the classpath.
This works with Web Start and under Windows with jar files (I just checked).

The code that builds the exe is in ptII/adm/gen-8.0.

Interestingly, we are facing similar problems when trying to use OSGi.
The issue is that it is difficult to load resources in other jar files.


More information about the Kepler-dev mailing list