Calling Maxima $diff from java



Volker van Nek wrote:
> Here is a short demo of the socket version. I use netcat as the socket
> server and Maxima connects to this server as a client by -s
> portnumber.

For me your demo below does *not* work. Everything hangs after i have typed
diff(sin(x), x);
and i never get the cos(x)


>
> First terminal (the listening server):
> volker at uvw32:~$ nc -l 4711
> pid=6795
> (%i1) diff(sin(x), x);
>
> (%o1)                               cos(x)

> Second terminal (the Maxima core as a client):
> volker at uvw32:~$ maxima -q -s 4711
> Connecting Maxima to server on port 4711
> volker at uvw32:~$


I had in the past tried the same game on a FreeBSD machine, here it is on Mac
OS X, in both cases it does not work. Perhaps it works on Linux?

What works for me is replacing the command maxima -q -s 4711 by the following

maxima -r ":lisp (setup-client 4711)"



-- 
Michel Talon