Skip to content

Commit

Permalink
Using the ClassLoader is important too
Browse files Browse the repository at this point in the history
Change-Id: I7cb1e6e350fd647ceb60ef1555dd7b9e277ed296
  • Loading branch information
egonw committed Mar 24, 2013
1 parent b13ba75 commit 6624689
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -807,7 +807,7 @@ public void readParameterSets() throws Exception {
//dipole3,piatom,pibond,dipole3
//logger.debug("------ ReadParameterSets ------");

InputStream in = getClass().getResourceAsStream(PARAMETER_PATH);
InputStream in = getClass().getClassLoader().getResourceAsStream(PARAMETER_PATH);

if (in == null)
throw new IOException("unable to access the default parameter location: " + PARAMETER_PATH);
Expand Down

0 comments on commit 6624689

Please sign in to comment.