Hello all, I'm trying to get NetRexx set up and running on my PC, and not having much luck. I'm running PopOS 19.10 (based on Ubuntu 19.10) on my Dell laptop. For Java, I've installed Open JDK 11: jeff@pop-os:~/$ java -version openjdk version "11.0.5-ea" 2019-10-15 OpenJDK Runtime Environment (build 11.0.5-ea+10-post-Ubuntu-0ubuntu1) OpenJDK 64-Bit Server VM (build 11.0.5-ea+10-post-Ubuntu-0ubuntu1, mixed mode, sharing) Extracted the .zip file of 3.08 GA, and set PATH and CLASSPATH jeff@pop-os:~$ echo $PATH /home/jeff/NetRexx/bin:/home/jeff/.local/bin:/home/jeff/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games jeff@pop-os:~$ echo $CLASSPATH /home/jeff/NetRexx/lib/NetRexxF.jar:. But I can't get anything to run. I created hello.nrx as directed in the manual, but: jeff@pop-os:~/NetRexx/lib$ cat hello.nrx say "hello" jeff@pop-os:~/NetRexx/lib$ java -jar NetRexxF.jar -exec hello NetRexx portable processor 3.08-GA build 1,582-20190906-1850 Copyright (c) RexxLA, 2011,2019. All rights reserved. Parts Copyright (c) IBM Corporation, 1995,2008. Program hello.nrx +++ Error: A default constructor, 'hello()', is needed, but the immediate superclass has no matching constructor Processing of 'hello.nrx' failed [one error] Feels like I'm missing something here, maybe a .jar in the CLASSPATH, but I don't know enough of the intricacies of Java to figure it out myself. Help? Thanks, -- Jeff Henry _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hello Jeff, I am neither familiar with PopOS 19.10 nor Ubuntu 19.10, but *I do think* that Your current problems are, that You are using a Java version >= 8 ... Try Java 7 (maybe 8 shall work), please. The MODULE-statement introduced in Java 8, when my memory does serve me right, is currently the SHOW-Stopper, as NetRexx does still use the ancient package-statement ... Rene Vincent Jansen, President of RexxLA, is aware of this still pending issue, however. Hope this msg. does help You to fix Your problem. Rene, when not, please *do reply to Jeff* :-) Kindly, Thomas Schneider, Vienna, Austria. ======================================================================================== Am 08.11.2019 um 20:58 schrieb Jeff
Henry:
_______________________________________________ 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 |
Thomas, You are correct in your assumption, the default Java is version 11. I've installed Java 7 finally. It was a bit of an adventure, as it seems Java 7 is no longer supported, and so I had to track down a download and install it manually. If NetRexx does require such an old version of Java, it seems that should be mentioned in the Quick Start Guide which actually states: "The NetRexx samples and translator, version 3.08-GA, are guaranteed to run on Java version 1.6 or later." Very confusing for a n00b like me. However, I did get it to work a little better. I can compile / run a simple program if I'm in the NetRexx/lib/ directory. But in any other directory, the compiler starts up and then just stalls with no output until I kill it. I'm guessing my manual Java 7 install is missing something. Ugh. As a long time VM/CMS Rexx and CMS Pipelines user, NetRexx and its Pipes implementation really attracted my attention. But at this point I've lost enough time down this rabbit hole. Time to move on. Maybe I'll try again when the next release come out. Thanks for trying to help. On Fri, Nov 8, 2019 at 3:45 PM Thomas Schneider <[hidden email]> wrote:
-- Jeff Henry _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
On Ubuntu 19.10, if no other Java version is installed: You can probably just do this. sudo apt install openjdk-8-jdk Add these lines to .bashrc if you unpacked NetRexx into your home directory into folder NetRexx-3.08-GA CLASSPATH=$CLASSPATH:$HOME/NetRexx-3.08-GA/lib/NetRexxF.jar export CLASSPATH alias pipe="java org.netrexx.njpipes.pipes.runner" alias pipc="java org.netrexx.njpipes.pipes.compiler" alias nrc="java org.netrexx.process.NetRexxC" alias nrws="java org.vpad.extra.workpad.Workspace" log out and then log back in open a terminal make sure you java is working (type java or javac and hit enter) then just type nrc and hit enter _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jeff Henry
Hi Jeff,
Hopefully before the end of this year we will have a version that can run on Java >=9. I am sorry about that, although it was the JVM people who made changes without asking us. Java 8 is the best version to run; NetRexx is not alone in requiring this version. There is a Docker image that works. When the compiler seems to stall, you may hit the problem that with very long classpaths, the time to scan those increases. Jason has given very good advice in the previous email in this thread. Best regards, René. On 13 Nov 2019, at 15:02, Jeff Henry <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
Jason, This worked, and was relatively painless to set up. Thank you so much! On Wed, Nov 13, 2019 at 9:29 AM Jason Martin <[hidden email]> wrote:
-- Jeff Henry
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by rvjansen
René, Jason's advice did get me up and running. If Java 8 is the real requirement, it would be nice if the QuickStart Guide mentioned that specifically! Looking forward to getting into NetRexx and especially Pipes (which I miss dearly whenever I'm away from my mainframe), and seeing future developments. Thanks!
-- Jeff Henry
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Jeff,
I will be releasing 3.09 soon, and will put this in the QuickStart Guide right away. This will very probably be the last release before the Java >8 compatibility. Best regards, René. On 13 Nov 2019, at 17:14, Jeff Henry <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jeff Henry
It will run on Java 6 to Java 8 but setting that up with less than Java
8 now is harder. Most all up to date OSes only support 8 and higher. Exceptions would be OS/2, eCcomStation and ArcaOS https://urldefense.proofpoint.com/v2/url?u=https-3A__www.arcanoae.com_blue-2Dlion_&d=DwICaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=_6rXNpPJ1fYV-3bV1za02NiR4PUelvicfHXwtnTXpXE&m=Rt979P9eQOLA6YANzwtfB-GTdwskSW6y6G-uRVCOgUQ&s=QZGyCIg5ndxYOcn-tis3eT2wPTDDQebNx8bxUZ49QLA&e= and older versions of Windows. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |