As Devon suggests the problem is because no PDF reader has been specified. However looking at the code, the only way the line causing the error can run is if Harvey is actually running the commands in jwdw. I suspect the error is caused because the resulting wd call is "bad": wd 'winexec * "some file.pdf"'
This is probably a bug that needs fixing - i.e. add an extra check before trying to display the file to make sure that 0 < #PDFREADER_j_. Additionally it would be nice to be able to optionally suppress the display of the file in the viewer even if one is specified. This is possible when writing to other file formats by preventing the display of the isigraph window using the "visible 0" option and then using one of the copy commands (clip, print, save, get) to work with the plot. Perhaps the "visible" option could be reused here too? > From: Devon McCormick > > It's trying to run whatever executable you have defined as your PDF > reader > (in Edit/Configure/External Programs). The domain error on "wd" means > you > don't have the window driver loaded; the regular jconsole does not load > this, but the "jee.exe" variant does. > > On Wed, Jun 24, 2009 at 12:28 PM, PackRat wrote: > > > Ric Sherlock wrote: > > > Here is a fresh jconsole session showing the pdf is output ... > > > > I didn't know one could output plots to files, much less PDF files. > So > > I decided to try Ric Sherlock's commands to see if and how this > worked. > > > > However, I received the following error from my J session: > > > > ======================================= > > load'plot dir' > > 'output pdf' plot i.10 > > |domain error: wd > > | wd'winexec *',PDFREADER_j_,' ',dquote file > > dir jpath '~temp/*.pdf' > > plot.pdf 72864 24-Jun-09 11:08:19 > > ======================================= > > > > The plot was definitely saved to a PDF file, but I haven't the > > slightest idea what this error message is trying to tell me. My > > version info: > > > > 9!:14 '' > > j602/2008-03-03/16:45 > > > > Thanks in advance for your help! > > > > Harvey > > > > --------------------------------------------------------------------- > - > > For information about J forums see > http://www.jsoftware.com/forums.htm > > > > > > -- > Devon McCormick, CFA > ^me^ at acm. > org is my > preferred e-mail > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
