Stuck installing NetRexx 3.07-GA on OpenSuSE Leap 15

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

Stuck installing NetRexx 3.07-GA on OpenSuSE Leap 15

jlturriff
        I've followed the instructions in the QuickStart Guide, and it looks like
everything is set up correctly, but running hello.nrx fails.  Here's what I
see, and how I've set up:

@12:39:49,leslie@pinto
~
$ java -jar NetRexxF.jar -exec hello.nrx
Error: Unable to access jarfile NetRexxR.jar
@12:50:16,leslie@pinto
~
$ echo $PATH
/home/leslie/bin/rexx:/home/leslie/bin/NetRexx:/home/leslie/bin/x2:/home/leslie/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:/opt/trinity/bin:/opt/trinity/lib64:/bin:/usr/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/lib64:/usr/local/lib:/usr/games
@12:51:30,leslie@pinto
~
$ ls -l bin/NetRexx
total 24
-rw-r--r-- 1 leslie users  426 2017-09-11 01:32:34 hello.class
-rw-r--r-- 1 leslie users   30 2017-09-11 00:41:24 hello.nrx
-rw-r--r-- 1 leslie users 4923 2017-09-11 03:17:31 qtime.class
-rw-r--r-- 1 leslie users 4234 2017-09-11 03:18:22 qtime.nrx
@12:51:38,leslie@pinto
~
$ echo $CLASSPATH
.:/usr/local/java/*:/usr/share/java/*:/usr/local/NetRexx/lib/*
@12:51:46,leslie@pinto
~
$ ls -l /usr/local/NetRexx/lib
total 5900
-rwxr-x--x 1 root root 2450404 2018-10-01 09:57:18 ecj-4.6.3.jar
-rwxr-x--x 1 root root  442548 2018-10-01 09:57:18 NetRexxC.jar
-rwxr-x--x 1 root root 3140965 2018-10-01 09:57:18 NetRexxF.jar
@12:52:01,leslie@pinto
~
$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-suse-lp150.2.3.2-x8664)
OpenJDK 64-Bit Server VM (build 10.0.2+13-suse-lp150.2.3.2-x8664, mixed mode)

        The message, "Error: Unable to access jarfile NetRexxR.jar" does not appear
in the Troubleshooting section of the Guide.  It suggests moving the path to
NetRexxC.jar to the beginning of the list, but I get the same message.
        What have I done wrong?

Leslie

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

Reply | Threaded
Open this post in threaded view
|

Re: Stuck installing NetRexx 3.07-GA on OpenSuSE Leap 15

rvjansen
Hi Leslie,

two things:

(1) you need OpenJDK 8 - for the time being.
(2) CLASSPATH is almost right, but it needs the jar file postfixed. Like: .:/usr/local/java/*:/usr/share/java/*:/usr/local/NetRexx/lib/NetRexxF.jar

I am not sure if a classpath with * works. It might work for Java but not for NetRexx.
The call with -jar needs the full path to the NetRexxF.jar.

Let me know if that works.

If you run Docker, there is a Docker image that just works:

docker run --rm -it -v "$PWD":/nrx -w /nrx rvjansen/netrexx

This has a working java setup in it, and also THE, which is Mark Hessling’s XEDIT clone.

best regards,

René.


> On 24 Mar 2019, at 14:13, J Leslie Turriff <[hidden email]> wrote:
>
> I've followed the instructions in the QuickStart Guide, and it looks like
> everything is set up correctly, but running hello.nrx fails.  Here's what I
> see, and how I've set up:
>
> @12:39:49,leslie@pinto
> ~
> $ java -jar NetRexxF.jar -exec hello.nrx
> Error: Unable to access jarfile NetRexxR.jar
> @12:50:16,leslie@pinto
> ~
> $ echo $PATH
> /home/leslie/bin/rexx:/home/leslie/bin/NetRexx:/home/leslie/bin/x2:/home/leslie/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:/opt/trinity/bin:/opt/trinity/lib64:/bin:/usr/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/lib64:/usr/local/lib:/usr/games
> @12:51:30,leslie@pinto
> ~
> $ ls -l bin/NetRexx
> total 24
> -rw-r--r-- 1 leslie users  426 2017-09-11 01:32:34 hello.class
> -rw-r--r-- 1 leslie users   30 2017-09-11 00:41:24 hello.nrx
> -rw-r--r-- 1 leslie users 4923 2017-09-11 03:17:31 qtime.class
> -rw-r--r-- 1 leslie users 4234 2017-09-11 03:18:22 qtime.nrx
> @12:51:38,leslie@pinto
> ~
> $ echo $CLASSPATH
> .:/usr/local/java/*:/usr/share/java/*:/usr/local/NetRexx/lib/*
> @12:51:46,leslie@pinto
> ~
> $ ls -l /usr/local/NetRexx/lib
> total 5900
> -rwxr-x--x 1 root root 2450404 2018-10-01 09:57:18 ecj-4.6.3.jar
> -rwxr-x--x 1 root root  442548 2018-10-01 09:57:18 NetRexxC.jar
> -rwxr-x--x 1 root root 3140965 2018-10-01 09:57:18 NetRexxF.jar
> @12:52:01,leslie@pinto
> ~
> $ java -version
> openjdk version "10.0.2" 2018-07-17
> OpenJDK Runtime Environment (build 10.0.2+13-suse-lp150.2.3.2-x8664)
> OpenJDK 64-Bit Server VM (build 10.0.2+13-suse-lp150.2.3.2-x8664, mixed mode)
>
> The message, "Error: Unable to access jarfile NetRexxR.jar" does not appear
> in the Troubleshooting section of the Guide.  It suggests moving the path to
> NetRexxC.jar to the beginning of the list, but I get the same message.
> What have I done wrong?
>
> Leslie
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : https://urldefense.proofpoint.com/v2/url?u=http-3A__ibm-2Dnetrexx.215625.n3.nabble.com_&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=C0BFCzQ4Mrm2l4kl-8hDq-Et2ftnAcm4kUo6GoNsgAE&s=G4RjdYGZt6omKtTZBy5tI1csriE1kc_veSs1RQ81WUg&e=
>


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

Reply | Threaded
Open this post in threaded view
|

Re: Stuck installing NetRexx 3.07-GA on OpenSuSE Leap 15

jlturriff
On 2019-03-24 14:40:09 René Jansen wrote:

> Hi Leslie,
>
> two things:
>
> (1) you need OpenJDK 8 - for the time being.
> (2) CLASSPATH is almost right, but it needs the jar file postfixed. Like:
> .:/usr/local/java/*:/usr/share/java/*:/usr/local/NetRexx/lib/NetRexxF.jar
>
> I am not sure if a classpath with * works. It might work for Java but not
> for NetRexx. The call with -jar needs the full path to the NetRexxF.jar.
>
> Let me know if that works.
>
> If you run Docker, there is a Docker image that just works:
>
> docker run --rm -it -v "$PWD":/nrx -w /nrx rvjansen/netrexx
>
> This has a working java setup in it, and also THE, which is Mark Hessling’s
> XEDIT clone.
>
> best regards,
>
> René.
>

Hi, René,
        I didn't want to regress my Java from V10 to V8 just for NetRexx, so I have
used your alternate method of installing into docker, but I've never used
docker before.  Is NetRexx isolated in this docker environment, or can it be
accessed from docker's host (my first-level Linux)?
        Also, various references to documentation for NetRexx Pipelines (either a
standalone document or chapters in the NetRexx manuals) do not point to
anything real.  I'm not sure how to actually use NetRexx Pipelines now that I
have it. :-)

Leslie

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

Reply | Threaded
Open this post in threaded view
|

Re: Stuck installing NetRexx 3.07-GA on OpenSuSE Leap 15

rvjansen
Hi Leslie,

you are right, the document still did not make it into the distribution. I will correct that for NetRexx 3.08 which is scheduled for next month.
A download of the doc will be available even earlier.

Yes, you can access NetRexx from your 1st level Linux. The docker exec command is for that.
So what you could do is set up a shared directory (docker calls that ‘bind-mounted’) between 1st level and the container.
If you cd to your source directory, and you start docker with

docker run --rm -it -v $PWD:/mnt rvjansen/netrexx:latest

it will tell you something like 

root@4043bfe40f79:/#

that hex string after root@ is the container id.

It will mount your current linux directory into the container session into directory /mnt. You can access it with the shell this command starts, or run

docker exec 4043bfe40f79 nrc

(you can tab-complete the hex string, at least on my system that works). It will respond with:

Usage: /bin/NetRexxC.sh [-run] [other options] filename

NetRexx portable processor 3.07-GA build 487-20181001-0918
Copyright (c) RexxLA, 2011,2018.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.

Arguments are: in_file_specification... [-option]...

Use "-help" to show all options

So on your 1st level system you can run edit sessions, have a shell in that directory, and work from the container shell, or from every shell on that 1st level system, ‘exec’ commands into that container.
What works for ’exec nrc’, does not, for some reason, work for ‘exec pipe’. I am looking into that. From the container shell it works fine.
Do note that I pushed a new rvjansen/netrexx:latest image where the pipe command has been made executable; docker should resolve this automatically and download a few hundred megabytes for that one bit I changed.

best regards,


René.








On 6 Apr 2019, at 00:01, J Leslie Turriff <[hidden email]> wrote:

On 2019-03-24 14:40:09 René Jansen wrote:
Hi Leslie,

two things:

(1) you need OpenJDK 8 - for the time being.
(2) CLASSPATH is almost right, but it needs the jar file postfixed. Like:
.:/usr/local/java/*:/usr/share/java/*:/usr/local/NetRexx/lib/NetRexxF.jar

I am not sure if a classpath with * works. It might work for Java but not
for NetRexx. The call with -jar needs the full path to the NetRexxF.jar.

Let me know if that works.

If you run Docker, there is a Docker image that just works:

docker run --rm -it -v "$PWD":/nrx -w /nrx rvjansen/netrexx

This has a working java setup in it, and also THE, which is Mark Hessling’s
XEDIT clone.

best regards,

René.


Hi, René,
I didn't want to regress my Java from V10 to V8 just for NetRexx, so I have 
used your alternate method of installing into docker, but I've never used 
docker before.  Is NetRexx isolated in this docker environment, or can it be 
accessed from docker's host (my first-level Linux)?
Also, various references to documentation for NetRexx Pipelines (either a 
standalone document or chapters in the NetRexx manuals) do not point to 
anything real.  I'm not sure how to actually use NetRexx Pipelines now that I 
have it. :-)

Leslie

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