Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5708 > unrolled thread

Recuperate a graphic in a file using math.exe

Started byMaria Davis <arbiadr@gmail.com>
First post2011-10-18 11:42 +0000
Last post2011-10-18 11:42 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Recuperate a graphic in a file using math.exe Maria Davis <arbiadr@gmail.com> - 2011-10-18 11:42 +0000

#5708 — Recuperate a graphic in a file using math.exe

FromMaria Davis <arbiadr@gmail.com>
Date2011-10-18 11:42 +0000
SubjectRecuperate a graphic in a file using math.exe
Message-ID<j7jonv$8nd$1@smc.vnet.net>
Hi;

I want to run mathematica program (in this example:Quotient[17, 5] )
from a java application using math.exe.
I used this code as a java code:

            String cmd="cmd /c cmd.exe /k \"cd c:\\"+"Program Files\
\Wolfram Research\\Mathematica\\7.0";
             Runtime r;
            r = Runtime.getRuntime();
            Process p = r.exec(cmd);
            OutputStream os=p.getOutputStream();
            BufferedWriter wr = new BufferedWriter(new
OutputStreamWriter(os));
           wr.write("Math.exe  -run   >c:\\FileResult .txt \n");
           wr.write(" Quotient[17, 5] \n");

           wr.flush();
            os.flush();
            wr.close();
            os.close();
I obtained the desired result in the file c:\\FileResult .txt

My problem is when I want to plot a list of values, it seems that I
can't use Math.exe
Can I recuperate the resulted graphic in a file?
Can you please help me.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web