Do not insist on helma.jar to be in classpath. This is useful for running Helma

in alternative environments such as GCJ.
This commit is contained in:
hns 2005-08-09 17:32:39 +00:00
parent 7e44b71d6d
commit 42a088ef58

View file

@ -89,11 +89,12 @@ public final class TypeManager {
} }
if (helmajar == null) { if (helmajar == null) {
throw new RuntimeException("helma.jar not found in embedding classpath"); // throw new RuntimeException("helma.jar not found in embedding classpath");
} loader = new AppClassLoader(app.getName(), new URL[0]);
} else {
loader = new AppClassLoader(app.getName(), new URL[] { helmajar }); loader = new AppClassLoader(app.getName(), new URL[] { helmajar });
} }
}
/** /**
* Run through application's prototype directories and create prototypes, but don't * Run through application's prototype directories and create prototypes, but don't