Java-Applet to access Maxima



Jaime Villate <villate at fe.up.pt> writes:
>> I'm writing a Java-Applet where you can type in an expression
>> (e.g. "(2+1)*4"). I'd like to send this expression to Maxima. Maxima
>> should calc the result and give it back to my Java-Applet.
>
> Try this:
>   maxima -q --batch-string="(2+1)*4;"
> your Java applet will have tp execute commands like that one and then
> parse the output to extract the answer.
<snip>

... but be careful. Sending arbitrary strings from the internet to
maxima is a bad idea unless the maxima process has no privileges to
break anything: Using the ":lisp (foo)" convention, together with
whatever command your lisp implementation uses to call other programs,
would let the user run arbitrary code with the privileges of the maxima
process.

Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20100614/391bbcb8/attachment.pgp>;