From: Jeff H. <Je...@Je...> - 2020-11-15 16:00:44
|
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <p>I am trying to run an example from Pipelines Quick Start (p 24), using the supplied file <font face="monospace">examples/calltest1.njp</font>. But I am getting stuck right at the beginning.</p> <div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Consolas',monospace;font-size:10pt;padding:4px;"><span style="color:#CCCCCC;background-color:#012456;">PS C:\Users\Jeff\documents\pipe tests> </span><span style="color:#F9F1A5;background-color:#012456;">pipc </span><span style="color:#CCCCCC;background-color:#012456;">calltest1 </span><div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Consolas',monospace;font-size:10pt;padding:4px;"><span style="color:#CCCCCC;background-color:#012456;">PS C:\Users\Jeff\documents\pipe tests> </span><span style="color:#F9F1A5;background-color:#012456;">java </span><span style="color:#CCCCCC;background-color:#012456;">calltest1 Error: Main method not found in class calltest1, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application</span></div> <span style="color:#CCCCCC;background-color:#012456;"></span></div> <p>Here is the file <br> </p> <blockquote> <p><font face="monospace">-- calltest1.njp<br> <br> pipe (callt1 debug 0 ) literal test | calltest1 10 | console<br> <br> import org.netrexx.njpipes.pipes.<br> class calltest1 extends stage final<br> <br> method run() public<br> <br> say '1 .. 10, test'<br> do<br> a = arg()<br> <br> callpipe (cp1 debug 0 ) gen {a} | *out0:<br> <br> loop forever<br> line = peekto()<br> output(line)<br> readto()<br> end<br> <br> catch StageError<br> rc = rc()<br> end<br> <br> exit(rc*(rc<>12))<br> </font></p> </blockquote> <p>I tried changing the top to:</p> <blockquote> <p><font face="monospace">-- calltest1.njp<br> <br> import org.netrexx.njpipes.pipes.<br> class calltest1 extends stage final<br> <br> method main()<br> pipe (callt1 debug 0 ) literal test | calltest1 10 | console</font></p> </blockquote> <p>but get the same error. I have also tried changing the file name to <font face="monospace">calltest1.nrx</font> to no avail.</p> <p>Anyone who can help would be greatly appreciated. (I have an idea for a new stage that would allow a web browser to be the output target of a stage like <font face="monospace">CONS</font> -- that leads to all kinds of interesting things with fonts and colors, etc --, but it needs to use <font face="monospace">callpipe</font>, which I have never yet used.) <br> </p> <p>Thanks,</p> <p>Jeff <br> </p> </body> </html> |