I work with clips JNI 0.5 (with latest bug fix) on windows 7. It seems that a clips Environnement could not be used after an error occurs. More precisely every user's clips function return FALSE. For example, the following java code :
You'll need to recompile the jni library. In the file net_sf_clipsrules_jni_Environment.c, modify the Java_net_sf_clipsrules_jni_Environment_eval function to call SetEvaluationError and SetHaltExecution before the call to EnvEval:
HI,
I work with clips JNI 0.5 (with latest bug fix) on windows 7. It seems that a clips Environnement could not be used after an error occurs. More precisely every user's clips function return FALSE. For example, the following java code :
give the following result :
february 2015 = 20150201
[EXPRNPSR3] Missing function declaration for this_function_does_not_exist.
2 + 2 = 4
february 2015 = FALSE
Is it possible to change this ?
Last edit: Chaubert Jérôme 2015-10-20
You'll need to recompile the jni library. In the file net_sf_clipsrules_jni_Environment.c, modify the Java_net_sf_clipsrules_jni_Environment_eval function to call SetEvaluationError and SetHaltExecution before the call to EnvEval:
If you're using the latest CLIPS source code rather than the code include with CLIPSJNI v0.5, use this code instead:
Thank you,
It works fine.
Why did you choose to not call these evaluation and halt error functions ? For performance ?
It was an oversight.