Greetings,
Did anyone ever post a response explaining how to get maxima to
communicate over a port with another app ?
I am trying to do this in a java program using code like :
try
{
theProcess = Runtime.getRuntime().exec( "/opt/local/bin/maxima" );
}
catch (IOException e)
{
System.out.println ( "Exception thrown trying to spawn Maxima process!" ) ;
}
// now attach to stdin and stdout
toMaximaStream = new BufferedWriter(new
OutputStreamWriter(theProcess.getOutputStream())) ;
fromMaximaStream = new BufferedReader(new
InputStreamReader(theProcess.getInputStream())) ;
fromMaximaErrorStream = new BufferedReader(new
InputStreamReader(theProcess.getErrorStream())) ;
I have used a similar method with both python and octave with good
results, but maxima hangs.
Any suggestions ?
Thanks,
Chris