I have found that running:
nrc some_file.nrx -or- NetRexxC.sh some_file.nrx -or- java org.netrexx.process.NetRexxC some_file.nrx Really, really slow...................... Running java -jar is not slow. Here is a script adapted from jedit: #!/bin/sh # # Run a NetRexx jar file. # # Find a java installation. if [ -z "${JAVA_HOME}" ]; then echo 'Warning: $JAVA_HOME environment variable not set! Consider setting it.' echo ' Attempting to locate java...' j=`which java 2>/dev/null` if [ -z "$j" ]; then echo "Failed to locate the java virtual machine! Bailing..." exit 1 else echo "Found a virtual machine at: $j..." JAVA="$j" fi else JAVA="${JAVA_HOME}/bin/java" fi # Launch application. # Set path to your own NetRexxC.jar or NetRexxF.jar jar file exec "${JAVA}" -jar "/export/home/agrellum/NetRexx-3.05GA/lib/NetRexxF.jar" "$@" _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
This might all be dependent on classpath. One way to make NetRexx really slow it to have it run from a directory that has many java classes in zips and jars in directories below it; these will all be scanned. Java -jar will disregard the set classpath if I am not mistaken.
I don’t have scripts but I set a shell alias for java org.netrexx.process.NetRexxC. Locating Java once should be enough until you change things. best regards, René. > On 10 Nov 2017, at 15:58, Jason Martin <[hidden email]> wrote: > > I have found that running: > > nrc some_file.nrx > -or- > NetRexxC.sh some_file.nrx > -or- > java org.netrexx.process.NetRexxC some_file.nrx > > Really, really slow...................... > > Running java -jar is not slow. > > Here is a script adapted from jedit: > > #!/bin/sh > # > # Run a NetRexx jar file. > # > > # Find a java installation. > if [ -z "${JAVA_HOME}" ]; then > echo 'Warning: $JAVA_HOME environment variable not set! Consider setting it.' > echo ' Attempting to locate java...' > j=`which java 2>/dev/null` > if [ -z "$j" ]; then > echo "Failed to locate the java virtual machine! Bailing..." > exit 1 > else > echo "Found a virtual machine at: $j..." > JAVA="$j" > fi > else > JAVA="${JAVA_HOME}/bin/java" > fi > > # Launch application. > # Set path to your own NetRexxC.jar or NetRexxF.jar jar file > exec "${JAVA}" -jar "/export/home/agrellum/NetRexx-3.05GA/lib/NetRexxF.jar" "$@" > > _______________________________________________ > 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=blyGZz94w9taugFc6XKvXCR-YtX9yy-mf76ceqP4JJg&s=LWrWZUkTWF3cdPr05djqfm-emZdG6ENPPokt59_fYBk&e= > _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Jason Martin
Thanks René, I had a period in the classpath.export CLASSPATH=$CLASSPATH:.:$HOME/NetRexx-3.05GA/lib/NetRexxF.jar _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |