Hi Rene, Exactly.
I shall produce a file modulename.abstract.txt corresponding to modulename.nrx first. Second, I shall write a short NetRexx utility named addabstract.nrx which does prepend the abstract as a *BANNER comment* to the start ot the NetRexx Program as well as write the legenda.txt file as indicated. The utility addabstract shall also read the legenda.txt file at startup, and when the module is already there, remove the *old abstract* from the source of the *old program*, and replace it my the updated version :-) Hence, the legenda-file wild serve as the master index. OK? I'm still investigating the samples, but I think those of the Rosetta Code should not be the starters. I'm currently busy with -ecj vs -javac comparisons, but could start next week (half-day) with writing the abstracts as mentioned above. Thomas. =============================================================================== Am 10/06/2015 um 21:42 schrieb René
Jansen:
Hi Thomas, _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
In reply to this post by rvjansen
When You send me a copy of the NetRexx program, and the data files, I
could help, when You want! Am 10/06/2015 um 21:44 schrieb René Jansen: > Hi Walter, > > it is a NetRexx program that puts this page together, so I need to change it in one place only. I will do that one of these days. > > best regards, > > René. > >> On 10 jun. 2015, at 21:39, Walter Pachl <[hidden email]> wrote: >> >> There are 168 warnings. >> In >> <a href=netrexx/netrexxc/examples/rosettacode/RCKnuthShuffle.nrx>RCKnuthShuffle.nrx<a> >> the <a> at the end should be </a> in this and many other lines >> >> Maybe a c.<a> .</a>.* would fix this >> -- >> Walter >> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ >> > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
Thomas Schneider, Vienna, Austria (Europe) :-)
www.thsitc.com www.db-123.com |
In reply to this post by christel.u.w.pachl christel.u.w.pachl
Hi Walter,
that is an applet - it needs appletviewer. René. > On 10 jun. 2015, at 22:00, Walter Pachl <[hidden email]> wrote: > > first try, first error!?! > > That's my fate :-( > > D:\>nrc ArchText > NetRexx portable processor 3.03 NetRexx '3.03', build 61-20140611-2330 > Copyright (c) RexxLA, 2011,2014. All rights reserved. > Parts Copyright (c) IBM Corporation, 1995,2008. > Program ArchText.nrx > === class ArchText === > method init > overrides Applet.init > method start > overrides Applet.start > method stop > 29 +++ timer.stop /* else stop it */ > +++ ^^^^ > +++ Warning: The method 'Thread.stop' has been deprecated > overrides Applet.stop > method run > implements Runnable.run > method update(Graphics) > overrides Container.update(Graphics) > method paint(Graphics) > overrides Container.paint(Graphics) > Compilation of 'ArchText.nrx' successful [one warning] > > D:\>java ArchText > Fehler: Hauptmethode in Klasse ArchText nicht gefunden. Definieren Sie die Haup > methode als: > public static void main(String[] args): > oder eine JavaFX-Anwendung muss javafx.application.Application erweitern > > > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by rvjansen
I just download and installed 3.04 RC2 and tested as per the
examples [emphasis added]:
C:\NetRexx\bin>nrc -exec helloAny help would be welcomed. Thank you. Jeff Hennick _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Jeff,
the NetRexxF.jar file has to be on the CLASSPATH also to find the pipes compiler. So if you edit a -cp ";.;C:\NetRexx\lib\NetRexxF.jar” after java in the pipe.bat file, it should work. best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
René,
Thank you for your help. But still no joy here. I have this in the pipe.bat [blank lines added for readability]: set NJPIPES_HOME="%~dp0.."And this is the result [emphasis added]: C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"I have tried commenting out this line in pipes.bat (and even removing it totally): rem @echo import org.netrexx.njpipes.tests. >> pipes.cnfBut still get the same error messages. Something else is looking for the "tests.". More help, please. ======== Suggestion for 3.04: add ".;%NJPIPES_HOME%/njpipesF.jar;" to the java-line in pipe.bat file. Jeff On 6/15/2015 5:24 AM, René Jansen
wrote:
Hi Jeff, _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by rvjansen
René,
Update: I realized I needed to remove pipes.cnf to get rid of the tests package. But now I get this: C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"Thank you for your help. But still no joy here. I have this in the pipe.bat [blank lines added for readability]: set NJPIPES_HOME="%~dp0.."And this is the result [emphasis added]: C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"I have tried commenting out this line in pipes.bat (and even removing it totally): rem @echo import org.netrexx.njpipes.tests. >> pipes.cnfBut still get the same error messages. Something else is looking for the "tests.". More help, please. ======== Suggestion for 3.04: add ".;%NJPIPES_HOME%/njpipesF.jar;" to the java-line in pipe.bat file. Jeff On 6/15/2015 5:24 AM, René Jansen
wrote:
Hi Jeff, _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Jeff, try this: the -cp NetRexxF.jar places this jar on the classpath. org.netrexx.njpipes.pipes.compiler is the pipes compiler. We feed it the line between the double quotes. the -Dnrx.compiler=ecj pre-selects the eclipse compiler, which is on the classpath due to the fact that it is included in NetRexxF.jar Most of that line (except the pipe specification) needs to go into a pipe.bat file. Let me know if that works! best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
René,
Thanks for all this help. Using java -Dnrx.compiler=ecj -cp NetRexxF.jar org.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words ! console" directly gives: C:\NetRexx\bin>java -Dnrx.compiler=ecj -cp NetRexxF.jar org.netrexx.njpipes.pipe s.compiler "(test) literal arg() ! dup 999 ! count words ! console" Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler Modifying pipe.bat (and removing pipes.cnf) with these lines (each sequentially) java -Dnrx.compiler=ecj -cp NetRexxF.jar org.netrexx.njpipes.pipes.compiler %* java -Dnrx.compiler=ecj -cp ".;NetRexxF.jar;%NJPIPES_HOME%/njpipesC.jar;%NETREXX_HOME%/NetRexxC.jar;%CLASSPATH%" org.netrexx.njpipes.pipes.compiler %* Both give: Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler Jeff On 6/15/2015 8:47 AM, René Jansen
wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Jeff,
it is odd that java cannot find the pipes compiler. It is packaged in the NetRexxF.jar; if you do an unzip -v NetRexxF.jar or open it in WinZip or another zip aware editor you can see the classfile that implements it. The njPipesC.jar is no longer needed, as everything is packaged in NetRexxF.jar ; are you executing in the directory that contains NetRexxF.jar? If not, the path to is must be added. I would (on Windows) add (the correct path up to, and including) NetRexxF.jar to my CLASSPATH variable, then verify that it really is on there with a SET CLASSPATH - then the NetRexx translator can be started with java org.netrexx.process.NetRexxC [input files] and the pipes compiler can be started with org.netrexx.njpipes.pipes.compiler [pipe spec] My hypothesis is that the -cp NetRexxF.jar does not contain the full path up to and including the filename of NetRexxF.jar. So if that is located in c:\mydir\NetRexxF.jar, the -cp contents on the java commandline need to be: java -cp c:\mydir\NetRexxF.jar Also, please make sure there are no old njPipes.jar files on the classpath, these will lead to confusion. best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jeff Hennick
java -Dnrx.compiler=ecj -cp NetRexxF.jar org.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words ! console" Works for me (Xubuntu 15.05) with no errors but also no output that I can see. I do not no pipes though. On Sun, Jun 14, 2015 at 11:21 PM, Jeff Hennick <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Jason,
thanks for verifying this. This yields a test.class file. java test hello yields 1000. There is a document in the making that explains more of this. Let’s hope we can make it work on Jeff’s PC because he wrote a large part of the implementation! best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jeff Hennick
Yes it did but I had to add .: and NetRexxF.jar to classpath. Do not really have my system setup. agrellum@farms_ago:~/Downloads/NetRexx-3.04RC2/lib$ java -cp .:NetRexxF.jar test hello 1000 On Sun, Jun 14, 2015 at 11:21 PM, Jeff Hennick <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by rvjansen
René,
As always, thanks for all you do, and especially on this one. I'll intersperse below my replies to your several suggestions. On 6/15/2015 9:39 AM, René Jansen
wrote:
Hi Jeff,I downloaded the RC2 file and unziped it to C:\NetRexx Directory of C:\NetRexx There are copies of njPipesC.jar under my Documents directory. But not in the Path: C:\NetRexx\bin;C:\ProgramData\Oracle\Java\javapath;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT No. BINGO! I have been in C:\NetRexx\bin, not in C:\NetRexx\lib Moving there: C:\NetRexx\lib>pipe "(test) literal arg() ! dup 999 ! count words ! console"Gives no errors (Yay!), but also no result The Environment Variables panel is showing no CLASSPATH. I have now added CLASSPATH: .;C:\NetRexx\lib\NetRexxF.jar C:\NetRexx\lib>set classpath These results (after trying several tarted up versions of pipe.bat):
C:\NetRexx\lib>pipe "(test) literal arg() ! dup 999 ! count words ! console"[No error, but also no result] C:\NetRexx\lib>
C:\NetRexx\lib>set classpath I have now completely erased the old njPipes directory from my Documents directory. Also, I have several times (after changing the environment variables, too) started new console windows just to be sure. Same error messages and null results as above. Thanks, Jeff
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by rvjansen
René,
That is why I have been getting no result! I had just expected that to be in the pipe.bat. On first thoughts, I'd suggest modifying the published pipe.bat to include it. (And the other scripts.) This and adding the ".;%NJPIPES_HOME%\NetRexxF.jar;" to the java command. Thanks to you and Jason. Jeff On 6/15/2015 10:27 AM, René Jansen
wrote:
Hi Jason, _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Jeff,
happy to hear that it worked. In my recollection, we never included the execution of the pipe into the script - we might do a lot with the new compiler api though, but what I first wanted to release was a faithful reproduction of the last release including all its stages. Glad that it works! best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
René,
Once again, a big THANK YOU! A check of Ed's original documentation definitely does have the manual step to run the java class after compiling. (It has been years since I used this stuff.) From my evolving understanding, I still think in the script the new NetRexxF.jar should be added to the -cp list as %NETREXX_HOME%/NetRexxF.jar; , unless there is a compelling reason not to. Should the current directory be added also? Is it implied? Also something has to be done about the "tests". Either include the package (my choice) or remove the import in the script. These should at least be available for download if not included. Jeff On 6/15/2015 10:57 AM, René Jansen
wrote:
Jeff, _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Jeff, yes, you are right, and for some reason the edited version of the pipe.bat script did not make it into trunk - so you testing it is very useful indeed. So I am going to revise that. The tests have gone into the examples directory, and can be found at examples/pipes. Thank you for drawing my attention to it! best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
When I try to compile the included zonetests.njp I am getting lots
of error messages. Here are the first few
C:\NetRexx\examples\pipes>pipe zonetests I was trying this because I was having problems with IRanges in a stage I was writing. In searching to find my error, as far as I can tell, pipes support is in NetRexxF.jar but not in NetRexxC.jar. Is that true? _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Jeff, Yes, that is true. Pipes are only in NetRexxF.jar, like the Eclipse compiler. Several people have indicated the need to keep NetRexxR.jar and NetRexxC.jar as small as possible. I'll have a look at the error. Best regards, René Sent from my iPhone
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |