If I include .clp files in a jar.. and try to use:
        URL theUrl = callingClass.getResource("jess/" + fileName);
        String rulePath = theUrl.getFile();
        engine.batch(rulePath);

it will always fail because it includes the entire (jar included) filename:
myPackge.jess.EngineUtil:45) ----- file:/C:/d04/agent/jars/agent.jar!/packageStructure/blah/jess

if I do a rulePath.substring(index of ! + 1) so it is only packageStructure/blah/jess it of course finds the .clp inside the jar.

Is there some 'java usage' error in asking something to open a file inside a jar when the fill theUrl.getFile() include the jar it is in?

Roger

Reply via email to