|
From: Tatsuro M. <tma...@ya...> - 2010-05-11 10:30:17
|
Hello
>
Runtime.getRuntime().exec("\"C:/tinyos/cygwin/opt/tinyos-1.x/tools/java/net/tinyos/sim/gnuplot/binary/wgnuplot
plot sin(x)\"");
Sorry I have not see your java code in detail.
Obviously it is natural that wgnuplot went wrong.
The argument usually is to be a script file name but not commands.
If you execute gnuplot commands but not script, you have to use "-e" option for example
wgnuplot -e "plot sin(x);pause -1"
Please see the execute "help command line options" on the wgnuplot prompt.
You can see the help of Batch/Interactive Operation
Regards
Tatsuro
--- Tatsuro MATSUOKA wrote:
> Hello
>
>
> Before you use gnuplot for cygwin for x11, you have to start the X server software.
>
> You can use the Cygwin-X.
> I am using the public domain version of the Xming.
>
> Please search by Google what Cygwin-X and Xming are.
>
> Regards
>
> Tatsuro
>
> --- Kiraneet sharma wrote:
>
> > Hi..
> >
> > Thanks for the reply. I have downloaded the file but still it doesn't run..
> > I done have an X11 terminal and dont know what it means ?
> > All I have is cygwin in Windows XP.
> >
> >
> > If we leave the Java part my problem can be re-stated as:
> >
> > I want to run gnuplot from cygwin's prompt or command line in Windows XP.
> > How can this be achieved ?
> >
> > Thanks.
> >
> > Regards,
> > Kiraneet
> >
> > 2010/5/5 Tatsuro MATSUOKA <tma...@ya...>
> >
> > > Hello
> > >
> > > I do not know java langauge at all so that I cannot follow what you said in
> > > the thread.
> > >
> > > But please note that 'wgnuplot.exe' is a native windows application but not
> > > cygwin.
> > > It is possible to use windows native application from the cygwin.
> > > However, there might be ristrictions. I do not know how hard it is.
> > >
> > > If you are using the cygwin, why do not you to use the cygwin version
> > > gnuplot?
> > >
> > > http://sourceforge.net/projects/gnuplot/files/
> > >
> > > gp440win32x11.zip
> > >
> > > is the cygwin version of gnuplot 4.4.
> > >
> > > Perhaps the cygwin combination of cygwin applications will make things
> > > simpler, I suppose.
> > >
> > > Good luck!
> > >
> > > Regards
> > >
> > > Tatsuro
> > > --- Kiraneet sharma wrote:
> > >
> > > > Dear all,
> > > >
> > > > I am using Gnuplot 4.4 in Cygwin under Windows XP.
> > > > For this I have downloaded the windows binaries.
> > > >
> > > > Now I wish to plot a chart when a button is pressed in my Java GUI.
> > > > For this I cant write the command:
> > > > If I write it as
> > > > Runtime.getRuntime().exec("\"
> > > >
> > > C:/tinyos/cygwin/opt/tinyos-1.x/tools/java/net/tinyos/sim/gnuplot/binary/wgnuplot.exe
> > > > \"");
> > > >
> > > > It simply opens up the wgnuplot.exe
> > > > But if I write it as
> > > >
> > >
> > >
> >
>
Runtime.getRuntime().exec("\"C:/tinyos/cygwin/opt/tinyos-1.x/tools/java/net/tinyos/sim/gnuplot/binary/wgnuplot
> > > > plot sin(x)\"");
> > > >
> > > > It is wrong and the program gives an exception.
> > > >
> > > > please help me and tell me what is the exact command to run gnuplot
> > > > under cygwin.
> > > >
> > > >
> > > > Thanking you in advance.
> > > >
> > > > Regards,
> > > > Kiraneet
> > > >
> > > ------------------------------------------------------------------------------
> > > > _______________________________________________
> > > > gnuplot-info mailing list
> > > > gnu...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> > > >
> > >
> > >
> > > --------------------------------------
> > > GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
> > > http://pr.mail.yahoo.co.jp/gyao/
> > >
> >
>
>
> --------------------------------------
> 2010 FIFA World Cup News [Yahoo!Sports/sportsnavi]
> http://pr.mail.yahoo.co.jp/southafrica2010/
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
--------------------------------------
2010 FIFA World Cup News [Yahoo!Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/southafrica2010/
|