Hello there,
I have a quick question. I am loading a 25 Meg Owl file to the memory using
the following commands. My code is working fine through the IDE(IntelliJ),
but when I create a runnable Jar, it does not find the file. I already put
the owl file directory in the class path but I get Exception In Initializer
error.

// Create an empty model
model = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM);

// Use the FileManager to find the input file
InputStream in = FileManager.get().open(inPath);

[image: Inline image 1]

Really appreciate if you can provide a solution for the problem.


Best Regards,

Neda

Reply via email to