0
在我的servlet我寫了下面的語句來加載本體文件的Servlet拋出異常「系統找不到指定的路徑」
File fileBase = new File("src/java/ontology/ontology.owl");
SimpleIRIMapper iriMapper = new SimpleIRIMapper(IRI.create("src/java/ontology/AOA.owl"),
IRI.create(fileBase));
但是當我運行該項目,我得到了以下異常
org.semanticweb.owlapi.io.OWLOntologyInputSourceException:java.io.FileNotFoundException:SRC \ java的\本體\ ontology.owl(系統找不到指定的路徑)
我該如何克服這個問題?
它具有相對於所述的servlet URL模式的路徑是。 – zz3599