Use setExtensionClassPath only when classpath is not empty
@@ -1562,11 +1562,16 @@ public class Jg {
public ResourceManager createResourceManager() {
ResourceManager resourceManager = UIMAFramework.newDefaultResourceManager();
+ if (classPath != null && classPath.trim().length() > 0) {
try {
resourceManager.setExtensionClassPath(this.getClass().getClassLoader(), classPath, true);
} catch (MalformedURLException e1) {
error.newError(IError.ERROR, getString("Internal Error", null), e1);
}
+ }
+ else {
+ resourceManager.setExtensionClassLoader(this.getClass().getClassLoader(), true);
+ }
return resourceManager;
}
