From: <php...@li...> - 2006-11-16 09:31:12
|
Hi, thanks a lot for your help! > > Now I got a php-interactive> command prompt. > > Now I tried things like > > echo "test"; > > with and without the ;, with <? or <?php and so on, > > but always I got: > > php-interactive> echo "2"; > > script error: Could not evaluate script > > You should find the reason in the JavaBridge.log. Most > likely the java_closure() syntax is not available. It > is exported from both, the pure PHP implementation > "java/Java.php" and from the java.so extension. The problem was that I didn't had a php-cgi binary and so there was an IOException. I made a ln -s to the php5 binary. This solves the script error, but now there is the same error about the missing invoke method at interface javax.script.Invocable.invoke as when I tried to compile the test class. > jrunscript -l php testfile.php > > should work as it doesn't need java_closure(). actually nothing (visual) happens in that case. The file contains <?php echo "test"; ?> Neither any output to the console nor in the log file. Regards, Verena |