www.netrexx.org/examples

classic Classic list List threaded Threaded
53 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Re: www.netrexx.org/examples.nsp

ThSITC
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,

I would be great if you could do this. So what I need is, per directory of the examples, one file called legenda.txt, which has the format I indicated.
With pipe I mean the | symbol, not the pipes language. The one that gave us headaches in The Netherlands and Austria on the mainframe.

The examples are visible on the webpage, the ones that don’t have an explanation need one. Let me know if there are more questions.

best regards,

René.

On 10 jun. 2015, at 21:28, Thomas Schneider <[hidden email]> wrote:

Rene, did You address this task to me?

I would have still to *learn* a lot how You did implement all of that (both .nsp-pages and the repository), but for sure I would like to contribute.

When You send me a ZIP file with all the files You need documented, I can try to do it in the format You indicate, and send You the ZIP file back when ready, together with a contents-file
in the format of the samples in Your message below.

I personally use a technique in my utils package:

cmd>prepend textfile to Netrexx-file

but that is another story, and I shall follow Your conventions of course.

Are You personally using njpipes in the examples below?
It's more than 10 Years ago that I did use PIPES on CMS ... whoops ...

Thomas Schneider.
=========================================================================================

Am 10/06/2015 um 16:02 schrieb René Jansen:
The Rosettacode examples are first on the page because I had good descriptions for them. I agree with you and will shuffle the other directories upwards.

Could you write up comments for the source files?

These examples come out of the trunk/examples subdirectories. Each directory has (or needs) a file called legenda.txt - the layout is as follows:

ClassExample.nrx|In object-oriented programming class is a set (a transitive closure) of types bound by the relation of inheritance. The purpose of this task is to create a basic class with a method, a constructor, an instance variable and how to instantiate it.
DNSQuerying.nrx|DNS is an internet service that maps domain names, like rosettacode.org, to IP addresses, like 66.220.0.231. Use DNS to resolve www.kame.net to both IPv4 and IPv6 addresses. Print these addresses.
DateFormat.nrx|Display the current date in the formats of "2007-11-10" and "Sunday, November 10, 2007”.

A line has the filename, separated with a single pipe, from its explanation, which goes to end-of-line

If you can deliver me these, I can put these in; the website code will join them.

best regards,

René.


On 10 jun. 2015, at 15:44, Thomas Schneider <[hidden email]> wrote:

Thanks for the NetRexxServerPages doc. Have to read it thru, and look at at Your .nsp samples to understand.

I think the Rosetta Code is much too mathematical to fascinate young programmers of the power of NetRexx.

Too many options ate the beginning, etc.

I could contribute with more *pragmatic* samples, from org.netrexx.contributions.thsitc.utils, when You and Kermit and the community likes ;-)

What I did do is simply to methodically introduce *new methods* to be used as a standard for Messaging,
File I/O etc.

We should discuss that, however, here in the community, as this would introduce some programming standards
maybe not wanted by all :-(
Thomas.
=========================================================================================

Am 10/06/2015 um 14:56 schrieb René Jansen:
Hi Thomas,

The first set of examples is from rosettacode.org; they are documented there, and for the website, I have made a file that links the webpage comments to their source. As they are examples from elsewhere, I am not going to alter them. In due time, I am going to make a more friendly introduction to NetRexx for the website - but I am not at all opposed to someone else taking on that task.

The existing documentation on NetRexx Server pages is at www.rexxla.org/events/2013/presentations/NetRexxServerPages.pdf

best regards,

René.

On 10 jun. 2015, at 14:44, Thomas Schneider <[hidden email]> wrote:

Hi Rene,

I did now have short look at this new example page, which does now work, by the way.
Congratulations :-)

I do *think*, however, that the *text* which is on the internet home-page shall be included
as a *comment* at the start of the programs.

In my thinking, a program unit should be self-documenting, when possible.

Thomas Schneider.

PS: Is there somewhere a documentation of .nsp (NetRexx Server Pages) on the road ?
PPS: Also, my belief is that the start of the examples might be *too mathematical* and *theoretical*
as they are now ...

_______________________________________________
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/




_______________________________________________
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/



_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: www.netrexx.org/examples.nsp

ThSITC
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
Reply | Threaded
Open this post in threaded view
|

Re: www.netrexx.org/examples.nsp

rvjansen
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/

Reply | Threaded
Open this post in threaded view
|

3.04 RC2 Pipe Problem

Jeff Hennick
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 hello
java -cp ";.;C:\NetRexx\lib\NetRexxF.jar" -Dnrx.compiler=ecj org.netrexx.process
.NetRexxC  -exec hello
NetRexx portable processor 3.04 RC2 build 222-20150608-2234
Copyright (c) RexxLA, 2011,2015.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program hello.nrx
===== Exec: hello =====
hello
Processing of 'hello.nrx' complete

C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."
Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler

C:\NetRexx\bin>
Any help would be welcomed.  Thank you.

Jeff Hennick

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

rvjansen
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é.




On 15 jun. 2015, at 05:21, Jeff Hennick <[hidden email]> wrote:

I just download and installed 3.04 RC2 and tested as per the examples [emphasis added]:
C:\NetRexx\bin>nrc -exec hello
java -cp ";.;C:\NetRexx\lib\NetRexxF.jar" -Dnrx.compiler=ecj org.netrexx.process
.NetRexxC  -exec hello
NetRexx portable processor 3.04 RC2 build 222-20150608-2234
Copyright (c) RexxLA, 2011,2015.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program hello.nrx
===== Exec: hello =====
hello
Processing of 'hello.nrx' complete

C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."
Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler

C:\NetRexx\bin>
Any help would be welcomed.  Thank you.

Jeff Hennick
_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

Jeff Hennick
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.."

rem @java -cp "%NJPIPES_HOME%/njpipesC.jar;%NETREXX_HOME%/NetRexxC.jar;%CLASSPATH%" org.netrexx.njpipes.pipes.compiler %*

@java -cp ".;C:\NetRexx\lib\NetRexxF.jar;%NJPIPES_HOME%/njpipesC.jar;%NETREXX_HOME%/NetRexxC.jar;%CLASSPATH%" org.netrexx.njpipes.pipes.compiler %*
And this is the result [emphasis added]:
C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."

C:\NetRexx\bin>rem @java -cp ""C:\NetRexx\bin\.."/njpipesC.jar;/NetRexxC.jar;" o
rg.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words
! console"
( test  )  literal arg() ! dup 999 ! count words ! console
java.lang.NullPointerException
 10 +++ import org.netrexx.njpipes.tests.
    +++                ^^^
    +++ Warning: No classes found for import from package 'org.netrexx.njpipes.t
ests.'
no javac compiler - switching to ecj (Eclipse) compiler

C:\NetRexx\bin>
I have tried commenting out this line in pipes.bat (and even removing it totally):
rem @echo import org.netrexx.njpipes.tests.  >> pipes.cnf
But 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,

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é.




On 15 jun. 2015, at 05:21, Jeff Hennick <[hidden email]> wrote:

I just download and installed 3.04 RC2 and tested as per the examples [emphasis added]:
C:\NetRexx\bin>nrc -exec hello
java -cp ";.;C:\NetRexx\lib\NetRexxF.jar" -Dnrx.compiler=ecj org.netrexx.process
.NetRexxC  -exec hello
NetRexx portable processor 3.04 RC2 build 222-20150608-2234
Copyright (c) RexxLA, 2011,2015.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program hello.nrx
===== Exec: hello =====
hello
Processing of 'hello.nrx' complete

C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."
Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler

C:\NetRexx\bin>
Any help would be welcomed.  Thank you.

Jeff Hennick
_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

Jeff Hennick
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"
Build this directory's default pipe.cnf

C:\NetRexx\bin>rem @echo import org.netrexx.njpipes.tests.  >> pipes.cnf

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."

C:\NetRexx\bin>rem @java -cp ""C:\NetRexx\bin\.."/njpipesC.jar;/NetRexxC.jar;" o
rg.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words
! console"
( test  )  literal arg() ! dup 999 ! count words ! console
java.lang.NullPointerException
no javac compiler - switching to ecj (Eclipse) compiler

C:\NetRexx\bin>
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.."

rem @java -cp "%NJPIPES_HOME%/njpipesC.jar;%NETREXX_HOME%/NetRexxC.jar;%CLASSPATH%" org.netrexx.njpipes.pipes.compiler %*

@java -cp ".;C:\NetRexx\lib\NetRexxF.jar;%NJPIPES_HOME%/njpipesC.jar;%NETREXX_HOME%/NetRexxC.jar;%CLASSPATH%" org.netrexx.njpipes.pipes.compiler %*
And this is the result [emphasis added]:
C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."

C:\NetRexx\bin>rem @java -cp ""C:\NetRexx\bin\.."/njpipesC.jar;/NetRexxC.jar;" o
rg.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words
! console"
( test  )  literal arg() ! dup 999 ! count words ! console
java.lang.NullPointerException
 10 +++ import org.netrexx.njpipes.tests.
    +++                ^^^
    +++ Warning: No classes found for import from package 'org.netrexx.njpipes.t
ests.'
no javac compiler - switching to ecj (Eclipse) compiler

C:\NetRexx\bin>
I have tried commenting out this line in pipes.bat (and even removing it totally):
rem @echo import org.netrexx.njpipes.tests.  >> pipes.cnf
But 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,

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é.




On 15 jun. 2015, at 05:21, Jeff Hennick <[hidden email]> wrote:

I just download and installed 3.04 RC2 and tested as per the examples [emphasis added]:
C:\NetRexx\bin>nrc -exec hello
java -cp ";.;C:\NetRexx\lib\NetRexxF.jar" -Dnrx.compiler=ecj org.netrexx.process
.NetRexxC  -exec hello
NetRexx portable processor 3.04 RC2 build 222-20150608-2234
Copyright (c) RexxLA, 2011,2015.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program hello.nrx
===== Exec: hello =====
hello
Processing of 'hello.nrx' complete

C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."
Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler

C:\NetRexx\bin>
Any help would be welcomed.  Thank you.

Jeff Hennick
_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

rvjansen
Hi Jeff,

try this:

java -Dnrx.compiler=ecj -cp NetRexxF.jar org.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words ! console"

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é.


On 15 jun. 2015, at 14:17, Jeff Hennick <[hidden email]> wrote:

"(test) literal arg() ! dup 999 ! count words ! console"


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

Jeff Hennick
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:
Hi Jeff,

try this:

java -Dnrx.compiler=ecj -cp NetRexxF.jar org.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words ! console"

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é.


On 15 jun. 2015, at 14:17, Jeff Hennick <[hidden email]> wrote:

"(test) literal arg() ! dup 999 ! count words ! console"



_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

rvjansen
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é.




On 15 jun. 2015, at 15:14, Jeff Hennick <[hidden email]> wrote:

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:
Hi Jeff,

try this:

java -Dnrx.compiler=ecj -cp NetRexxF.jar org.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words ! console"

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é.


On 15 jun. 2015, at 14:17, Jeff Hennick <[hidden email]> wrote:

"(test) literal arg() ! dup 999 ! count words ! console"



_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

Jason Martin
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:
I just download and installed 3.04 RC2 and tested as per the examples [emphasis added]:
C:\NetRexx\bin>nrc -exec hello
java -cp ";.;C:\NetRexx\lib\NetRexxF.jar" -Dnrx.compiler=ecj org.netrexx.process
.NetRexxC  -exec hello
NetRexx portable processor 3.04 RC2 build 222-20150608-2234
Copyright (c) RexxLA, 2011,2015.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program hello.nrx
===== Exec: hello =====
hello
Processing of 'hello.nrx' complete

C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."
Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler

C:\NetRexx\bin>
Any help would be welcomed.  Thank you.

Jeff Hennick

_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

rvjansen
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é.

 
On 15 jun. 2015, at 16:14, Jason Martin <[hidden email]> wrote:

 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:
I just download and installed 3.04 RC2 and tested as per the examples [emphasis added]:
C:\NetRexx\bin>nrc -exec hello
java -cp ";.;C:\NetRexx\lib\NetRexxF.jar" -Dnrx.compiler=ecj org.netrexx.process
.NetRexxC  -exec hello
NetRexx portable processor 3.04 RC2 build 222-20150608-2234
Copyright (c) RexxLA, 2011,2015.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program hello.nrx
===== Exec: hello =====
hello
Processing of 'hello.nrx' complete

C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."
Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler

C:\NetRexx\bin>
Any help would be welcomed.  Thank you.

Jeff Hennick

_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

Jason Martin
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:
I just download and installed 3.04 RC2 and tested as per the examples [emphasis added]:
C:\NetRexx\bin>nrc -exec hello
java -cp ";.;C:\NetRexx\lib\NetRexxF.jar" -Dnrx.compiler=ecj org.netrexx.process
.NetRexxC  -exec hello
NetRexx portable processor 3.04 RC2 build 222-20150608-2234
Copyright (c) RexxLA, 2011,2015.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program hello.nrx
===== Exec: hello =====
hello
Processing of 'hello.nrx' complete

C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."
Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler

C:\NetRexx\bin>
Any help would be welcomed.  Thank you.

Jeff Hennick

_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

Jeff Hennick
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,

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.
I downloaded the RC2 file and unziped it to C:\NetRexx
 Directory of C:\NetRexx

06/14/2015  10:48 PM    <DIR>          .
06/14/2015  10:48 PM    <DIR>          ..
06/15/2015  09:05 AM    <DIR>          bin
06/14/2015  10:48 PM    <DIR>          documents
06/14/2015  10:48 PM    <DIR>          examples
06/15/2015  10:31 AM    <DIR>          lib
06/14/2015  10:48 PM             1,749 LICENSE
06/14/2015  10:48 PM    <DIR>          META-INF
06/14/2015  10:48 PM             3,034 read.me.first
06/14/2015  10:48 PM               271 readme.txt
06/14/2015  10:48 PM            50,999 releasenotes.txt
06/14/2015  10:48 PM    <DIR>          runlib
06/14/2015  10:48 PM    <DIR>          tools
               4 File(s)         56,053 bytes
               9 Dir(s)  851,772,407,808 bytes free

 Directory of C:\NetRexx\lib

06/15/2015  10:38 AM    <DIR>          .
06/15/2015  10:38 AM    <DIR>          ..
06/14/2015  10:48 PM         2,310,271 ecj-4.4.2.jar
06/14/2015  10:48 PM           433,672 NetRexxC.jar
06/14/2015  10:48 PM         3,015,663 NetRexxF.jar
06/15/2015  10:00 AM                74 pipes.cnf
06/15/2015  10:31 AM             3,621 test.class
               5 File(s)      5,763,301 bytes
               2 Dir(s)  851,771,314,176 bytes free

The njPipesC.jar is no longer needed, as everything is packaged in NetRexxF.jar ;
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
are you executing in the directory that contains NetRexxF.jar? If not, the path to is must be added.
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"
Build this directory's default pipe.cnf

C:\NetRexx\lib>rem @echo import org.netrexx.njpipes.tests.  >> pipes.cnf

C:\NetRexx\lib>set NJPIPES_HOME="C:\NetRexx\bin\.."

C:\NetRexx\lib>rem @java -cp ""C:\NetRexx\bin\.."/njpipesC.jar;/NetRexxC.jar;" o
rg.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words
! console"

C:\NetRexx\lib>rem @java -cp ".;C:\NetRexx\lib\NetRexxF.jar;"C:\NetRexx\bin\.."/
njpipesC.jar;/NetRexxC.jar;" org.netrexx.njpipes.pipes.compiler "(test) literal
arg() ! dup 999 ! count words ! console"

C:\NetRexx\lib>java -Dnrx.compiler=ecj -cp ".;NetRexxF.jar;"C:\NetRexx\bin\.."/n
jpipesC.jar;/NetRexxC.jar;" org.netrexx.njpipes.pipes.compiler "(test) literal a
rg() ! dup 999 ! count words ! console"
( test  )  literal arg() ! dup 999 ! count words ! console

C:\NetRexx\lib>
Gives no errors (Yay!), but also no result

I would (on Windows) add (the correct path up to, and including) NetRexxF.jar to my CLASSPATH variable,
The Environment Variables panel is showing no CLASSPATH.

I have now added CLASSPATH:  .;C:\NetRexx\lib\NetRexxF.jar
C:\NetRexx\lib>set classpath
CLASSPATH=.;C:\NetRexx\lib\NetRexxF.jar

These results (after trying several tarted up versions of pipe.bat):

C:\NetRexx\lib>set classpath
CLASSPATH=.;C:\NetRexx\lib\NetRexxF.jar
C:\NetRexx\lib>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\lib>rem This is C:\NetRexx\bin\pipe.bat

C:\NetRexx\lib>set NJPIPES_HOME="C:\NetRexx\bin\.."

C:\NetRexx\lib>rem @java -cp ""C:\NetRexx\bin\.."/njpipesC.jar;/NetRexxC.jar;.;C
:\NetRexx\lib\NetRexxF.jar" org.netrexx.njpipes.pipes.compiler "(test) literal a
rg() ! dup 999 ! count words ! console"

C:\NetRexx\lib>echo try it with its choice of compilers
try it with its choice of compilers

C:\NetRexx\lib>java -cp ".;C:\NetRexx\lib\NetRexxF.jar;"C:\NetRexx\bin\.."/njpip
esC.jar;/NetRexxC.jar;.;C:\NetRexx\lib\NetRexxF.jar" org.netrexx.njpipes.pipes.c
ompiler "(test) literal arg() ! dup 999 ! count words ! console"
( test  )  literal arg() ! dup 999 ! count words ! console
java.lang.NullPointerException
no javac compiler - switching to ecj (Eclipse) compiler

C:\NetRexx\lib>echo specify the ecj complier
specify the ecj complier

C:\NetRexx\lib>java -Dnrx.compiler=ecj -cp NetRexxF.jar org.netrexx.njpipes.pipe
s.compiler "(test) literal arg() ! dup 999 ! count words ! console"
( test  )  literal arg() ! dup 999 ! count words ! console
[No error, but also no result]
C:\NetRexx\lib>

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]
C:\NetRexx\lib>set classpath
CLASSPATH=.;C:\NetRexx\lib\NetRexxF.jar

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.
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.

best regards,

René.
Thanks,
Jeff




On 15 jun. 2015, at 15:14, Jeff Hennick <[hidden email]> wrote:

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:
Hi Jeff,

try this:

java -Dnrx.compiler=ecj -cp NetRexxF.jar org.netrexx.njpipes.pipes.compiler "(test) literal arg() ! dup 999 ! count words ! console"

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é.


On 15 jun. 2015, at 14:17, Jeff Hennick <[hidden email]> wrote:

"(test) literal arg() ! dup 999 ! count words ! console"



_______________________________________________
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/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

Jeff Hennick
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,

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é.

 
On 15 jun. 2015, at 16:14, Jason Martin <[hidden email]> wrote:

 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:
I just download and installed 3.04 RC2 and tested as per the examples [emphasis added]:
C:\NetRexx\bin>nrc -exec hello
java -cp ";.;C:\NetRexx\lib\NetRexxF.jar" -Dnrx.compiler=ecj org.netrexx.process
.NetRexxC  -exec hello
NetRexx portable processor 3.04 RC2 build 222-20150608-2234
Copyright (c) RexxLA, 2011,2015.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program hello.nrx
===== Exec: hello =====
hello
Processing of 'hello.nrx' complete

C:\NetRexx\bin>pipe "(test) literal arg() ! dup 999 ! count words ! console"

C:\NetRexx\bin>set NJPIPES_HOME="C:\NetRexx\bin\.."
Error: Could not find or load main class org.netrexx.njpipes.pipes.compiler

C:\NetRexx\bin>
Any help would be welcomed.  Thank you.

Jeff Hennick

_______________________________________________
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/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

rvjansen
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é.


On 15 jun. 2015, at 16:50, Jeff Hennick <[hidden email]> wrote:

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.



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

Jeff Hennick
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,

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é.


On 15 jun. 2015, at 16:50, Jeff Hennick <[hidden email]> wrote:

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.




_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problem

rvjansen
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é.

On 15 jun. 2015, at 18:56, Jeff Hennick <[hidden email]> wrote:

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,

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é.


On 15 jun. 2015, at 16:50, Jeff Hennick <[hidden email]> wrote:

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.




_______________________________________________
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/

Reply | Threaded
Open this post in threaded view
|

3.04 RC2 Pipe Problems - IRange

Jeff Hennick
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

C:\NetRexx\examples\pipes>set NJPIPES_HOME=C:\NetRexx\bin\

C:\NetRexx\examples\pipes>java  -Dnrx.compiler=ecj -cp ".;C:\NetRexx\lib\NetRexxF.jar" org.netrexx.njpipes.pipes.compiler zonetests
pipe (zonet1 ) diskr buffer.data ! zone w2 find 1! console
pipe (zonet2 end ?) diskr buffer.data ! a: zone w2 reverse find 1! b: faninany ! console ? a: ! specs /missed:/ 1 1-* next ! b:
pipe (zonet3 end ?) diskr buffer.data ! a: zone w3 reverse casei find T ! b: faninany !    console ? a: !    specs /missed:/ 1 1-* next !    b:
pipe (zonet4 end ?) diskr buffer.data ! a: not zone w3 reverse casei find T! b: faninany ! console ? a: ! specs /missed:/ 1 1-* next ! b:
pipe (zonet5 ) literal 123 343 456 222 323 ! split ! zone (2.1 2.1) find 22 ! console
pipe (zonet6 ) literal 123 343 456 222 323 ! split ! zone (2.1 -1;-1) find 23 ! console
pipe (zonet7 ) literal 123 343 456 222 323 ! split ! zone (1.1 3.1) find 33 ! console
pipe (zonet8 ) literal 123 343 456 222 323 ! split ! zone 2.1 find 2 ! console
pipe (zonet9 ) literal 123 343 456 222 323 ! split ! zone (strict 1.2 2.2) find 1223 ! console
pipe (zonet10 ) literal 123 343 456 222 323 ! split ! zone find 1223 ! console
Error - zonet10 - ZONE expects a range, found: find 1223
Error - Compiling zonet10 RC=13
 118 +++       _c_ = _o_.subword(2,1)
     +++                 ^^^^^^^
     +++ Error: The method 'subword(byte,byte)' cannot be found in class 'rexx' or a superclass
 132 +++       _c_ = _o_.subword(2,1)
     +++                 ^^^^^^^
     +++ Error: The method 'subword(byte,byte)' cannot be found in class 'rexx' or a superclass
 143 +++    _ri_ = GetIRanges(a)
     +++           ^^^^^^^^^^
     +++ Error: The method 'GetIRanges(rexx)' cannot be found in class 'zonet1_zone_find_2' or a superclass
 144 +++    _nr_ = _ri_[0].Number()
     +++           ^^^^
     +++ Error: Cannot convert value of type 'netrexx.lang.Rexx' for assignment to variable of type 'rexx'

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/

Reply | Threaded
Open this post in threaded view
|

Re: 3.04 RC2 Pipe Problems - IRange

rvjansen
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

On 29 Jun 2015, at 21:05, Jeff Hennick <[hidden email]> wrote:

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

C:\NetRexx\examples\pipes>set NJPIPES_HOME=C:\NetRexx\bin\

C:\NetRexx\examples\pipes>java  -Dnrx.compiler=ecj -cp ".;C:\NetRexx\lib\NetRexxF.jar" org.netrexx.njpipes.pipes.compiler zonetests
pipe (zonet1 ) diskr buffer.data ! zone w2 find 1! console
pipe (zonet2 end ?) diskr buffer.data ! a: zone w2 reverse find 1! b: faninany ! console ? a: ! specs /missed:/ 1 1-* next ! b:
pipe (zonet3 end ?) diskr buffer.data ! a: zone w3 reverse casei find T ! b: faninany !    console ? a: !    specs /missed:/ 1 1-* next !    b:
pipe (zonet4 end ?) diskr buffer.data ! a: not zone w3 reverse casei find T! b: faninany ! console ? a: ! specs /missed:/ 1 1-* next ! b:
pipe (zonet5 ) literal 123 343 456 222 323 ! split ! zone (2.1 2.1) find 22 ! console
pipe (zonet6 ) literal 123 343 456 222 323 ! split ! zone (2.1 -1;-1) find 23 ! console
pipe (zonet7 ) literal 123 343 456 222 323 ! split ! zone (1.1 3.1) find 33 ! console
pipe (zonet8 ) literal 123 343 456 222 323 ! split ! zone 2.1 find 2 ! console
pipe (zonet9 ) literal 123 343 456 222 323 ! split ! zone (strict 1.2 2.2) find 1223 ! console
pipe (zonet10 ) literal 123 343 456 222 323 ! split ! zone find 1223 ! console
Error - zonet10 - ZONE expects a range, found: find 1223
Error - Compiling zonet10 RC=13
 118 +++       _c_ = _o_.subword(2,1)
     +++                 ^^^^^^^
     +++ Error: The method 'subword(byte,byte)' cannot be found in class 'rexx' or a superclass
 132 +++       _c_ = _o_.subword(2,1)
     +++                 ^^^^^^^
     +++ Error: The method 'subword(byte,byte)' cannot be found in class 'rexx' or a superclass
 143 +++    _ri_ = GetIRanges(a)
     +++           ^^^^^^^^^^
     +++ Error: The method 'GetIRanges(rexx)' cannot be found in class 'zonet1_zone_find_2' or a superclass
 144 +++    _nr_ = _ri_[0].Number()
     +++           ^^^^
     +++ Error: Cannot convert value of type 'netrexx.lang.Rexx' for assignment to variable of type 'rexx'

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/


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

123