I downloaded GA 3.07 of netrexx to my Linux system. I unzipped it with the -a option into my home directory: $ pwd $ /home/prgramly/Downloads $ unzip -a -d /home/prgramly/netrexx/ NetRexx-3.07-GA.zip ... (unpacking responses) i verified that have have the right things in the netrexx/bin and netrexx/lib directories. all looks fine. i have java installed - 10.0.2 SE Runtime Environment 18.3 (build 10.0.2+13) i am simply trying to follow the steps in the quick start guide - section 3.3, pg. 21 i cd into the netrexx/lib directory and enter the command as indicated in the manual: $ pwd /home/prgramly/netrexx/lib $ ll total 5912 drwxrwxr-x 2 prgramly prgramly 4096 Dec 19 16:17 ./ drwxrwxr-x 9 prgramly prgramly 4096 Dec 19 16:13 ../ -rw-r--r-- 1 prgramly prgramly 2450404 Oct 1 09:57 ecj-4.6.3.jar -rwxr-xr-x 1 prgramly prgramly 12 Dec 19 16:17 hello.nrx* -rw-r--r-- 1 prgramly prgramly 442548 Oct 1 09:57 NetRexxC.jar -rw-r--r-- 1 prgramly prgramly 3140965 Oct 1 09:57 NetRexxF.jar $ java -jar NetRexxF.jar -exec hello 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. 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] $ echo $PATH /home/prgramly/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-10-oracle/bin:/usr/lib/jvm/java-10-oracle/db/bin:. this is on Linux Mint 18.3 64 bit what am i missing? _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Philip,
NetRexx does not yet run on Java 9 and higher. best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
ok, i have java 8 and 9 still out on my system, how can i use them instead? On Tue, 8 Jan 2019 at 11:18, René Jansen <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Philip,
on Linux, I think you can just set the path to the right version, and that will link to the required libraries automatically.. Let me know how it goes. best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
i have other apps that i need to use java 10 (xiv gui, etc.) is there a way to point netrexx to java 9? i don't want java 9 in my path ahead of 10... pg On Tue, 8 Jan 2019 at 12:31, René Jansen <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
yes, you could try to make a bespoke nrc.sh, for example:
export PATH=/opt/java8/bin:$PATH # when that is your java executable export CLASSPATH=~/lib/NetRexxF.jar:$CLASSPATH # to find netrexx classes on the java classpath java org.netrexx.process.NetRexxC $@ The NetRexx translator is java class NetRexxC in package org.netrexx.process - this is why the above works. Note that every terminal window has its own set of environment variables; my general .bashrc is set to java 9, while I source java8 in terminal windows where I compile netrexx. for my (macOS) system, this looks like: export JAVA_HOME=`/usr/libexec/java_home -v 1.8` export PATH=$JAVA_HOME/bin:$PATH So you can just switch one terminal window to java 8, which keeping the default on java 10. best regards, René.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
*while* keeping the default on java 10. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |