java プログラムで jess を実行中にエラーが発生しました: パッケージ jess が存在しません 含まれるすべてのパッケージがわかりません。
私は次のようなコードを書きました:
import jess.*;
public class ExQuery {
public static void main(String[] argv) throws JessException {
Rete engine = new Rete();
engine.batch("query.clp");
engine.reset();
QueryResult result =
engine.runQueryStar("search-by-name", new ValueVector().add("Smith"));
while (result.next()) {
System.out.println(result.getString("fn") + " " + result.getString("ln")
+ ", age" + result.getInt("age"));
}
}
}