NetRexx Install question

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

NetRexx Install question

Earl Hodil
Hi,

I'm trying to install NetRexx on my z/os machine. When I tried to compile the "hello" sample, this is what I got:

EDH:/Z113/usr/lpp/java/examples/ibm-historic: >java org.netrexx.process.NetRexxC
 hello                                                                          
NetRexx portable processor, version NetRexx 3.01RC3, build 21-20120806-0031     
Copyright (c) RexxLA, 2011,2012.  All rights reserved.                          
Parts Copyright (c) IBM Corporation, 1995,2008.                                 
Program hello.nrx                                                               
Exception in thread "main" java.lang.NoClassDefFoundError: sun.tools.javac.Main 
        at org.netrexx.process.RxTranslator.compile(RxTranslator.nrx:621)       
        at org.netrexx.process.NetRexxC.process(NetRexxC.nrx:239)               
        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165)                 
        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:154)                 
        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:152)                 
        at org.netrexx.process.NetRexxC.main(NetRexxC.nrx:91)                   
Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main               
        at java.net.URLClassLoader.findClass(URLClassLoader.java:434)           
        at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)          
        at java.lang.ClassLoader.loadClass(ClassLoader.java:644)                
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)        
        at java.lang.ClassLoader.loadClass(ClassLoader.java:627)                
        ... 6 more                                                              
I'm running z/os 1.13 and IBM Java 6.0.1 64-bit.

I guess there is something missing from my CLASSPATH, but I don't know what that is. Any help?

Earl Hodil

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

measel

Earl, looks like you have the 1.6 JRE.  You need the 1.6 SDK .  It’s looking for tools.jar.

 

You’ll also want the SDK because it has things like the jar command that you’ll want going forward.

 

http://www-03.ibm.com/systems/z/os/zos/tools/java/products/sdk601_64.html

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Earl Hodil
Sent: Friday, August 10, 2012 5:00 AM
To: [hidden email]
Subject: [Ibm-netrexx] NetRexx Install question

 

Hi,

 

I'm trying to install NetRexx on my z/os machine. When I tried to compile the "hello" sample, this is what I got:

 

EDH:/Z113/usr/lpp/java/examples/ibm-historic: >java org.netrexx.process.NetRexxC

 hello                                                                          

NetRexx portable processor, version NetRexx 3.01RC3, build 21-20120806-0031     

Copyright (c) RexxLA, 2011,2012.  All rights reserved.                          

Parts Copyright (c) IBM Corporation, 1995,2008.                                 

Program hello.nrx                                                               

Exception in thread "main" java.lang.NoClassDefFoundError: sun.tools.javac.Main 

        at org.netrexx.process.RxTranslator.compile(RxTranslator.nrx:621)       

        at org.netrexx.process.NetRexxC.process(NetRexxC.nrx:239)               

        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165)                 

        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:154)                 

        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:152)                 

        at org.netrexx.process.NetRexxC.main(NetRexxC.nrx:91)                   

Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main               

        at java.net.URLClassLoader.findClass(URLClassLoader.java:434)           

        at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)          

        at java.lang.ClassLoader.loadClass(ClassLoader.java:644)                

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)        

        at java.lang.ClassLoader.loadClass(ClassLoader.java:627)                

        ... 6 more                                                              

I'm running z/os 1.13 and IBM Java 6.0.1 64-bit.

 

I guess there is something missing from my CLASSPATH, but I don't know what that is. Any help?

 

Earl Hodil


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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

Earl Hodil
<base href="x-msg://2066/">Thanks Mike. It looks like the "java" I originally downloaded was just an update, and not the full package.

Live and learn.

Earl

On Aug 10, 2012, at 7:09 AM, "Measel, Mike" <[hidden email]> wrote:

Earl, looks like you have the 1.6 JRE.  You need the 1.6 SDK .  It’s looking for tools.jar.
 
You’ll also want the SDK because it has things like the jar command that you’ll want going forward.
 
 
From: [hidden email] [mailto:ibm-[hidden email]] On Behalf Of Earl Hodil
Sent: Friday, August 10, 2012 5:00 AM
To: [hidden email]
Subject: [Ibm-netrexx] NetRexx Install question
 
Hi,
 
I'm trying to install NetRexx on my z/os machine. When I tried to compile the "hello" sample, this is what I got:
 
EDH:/Z113/usr/lpp/java/examples/ibm-historic: >java org.netrexx.process.NetRexxC
 hello                                                                          
NetRexx portable processor, version NetRexx 3.01RC3, build 21-20120806-0031     
Copyright (c) RexxLA, 2011,2012.  All rights reserved.                          
Parts Copyright (c) IBM Corporation, 1995,2008.                                
Program hello.nrx                                                              
Exception in thread "main" java.lang.NoClassDefFoundError: sun.tools.javac.Main 
        at org.netrexx.process.RxTranslator.compile(RxTranslator.nrx:621)       
        at org.netrexx.process.NetRexxC.process(NetRexxC.nrx:239)               
        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165)                 
        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:154)                 
        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:152)                 
        at org.netrexx.process.NetRexxC.main(NetRexxC.nrx:91)
Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main               
        at java.net.URLClassLoader.findClass(URLClassLoader.java:434)           
        at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)          
        at java.lang.ClassLoader.loadClass(ClassLoader.java:644)                
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)        
        at java.lang.ClassLoader.loadClass(ClassLoader.java:627)                
        ... 6 more                                                              
I'm running z/os 1.13 and IBM Java 6.0.1 64-bit.
 
I guess there is something missing from my CLASSPATH, but I don't know what that is. Any help?
 
Earl Hodil
_______________________________________________
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: NetRexx Install question

Earl Hodil
One more question: Does a dot in CLASSPATH work the same as it does for PATH?

EARL
 
On Aug 10, 2012, at 7:37 AM, Earl Hodil <[hidden email]> wrote:

<base href="x-msg://2066/">
Thanks Mike. It looks like the "java" I originally downloaded was just an update, and not the full package.

Live and learn.

Earl

On Aug 10, 2012, at 7:09 AM, "Measel, Mike" <[hidden email]> wrote:

Earl, looks like you have the 1.6 JRE.  You need the 1.6 SDK .  It’s looking for tools.jar.
 
You’ll also want the SDK because it has things like the jar command that you’ll want going forward.
 
 
From: [hidden email] [mailto:ibm-[hidden email]] On Behalf Of Earl Hodil
Sent: Friday, August 10, 2012 5:00 AM
To: [hidden email]
Subject: [Ibm-netrexx] NetRexx Install question
 
Hi,
 
I'm trying to install NetRexx on my z/os machine. When I tried to compile the "hello" sample, this is what I got:
 
EDH:/Z113/usr/lpp/java/examples/ibm-historic: >java org.netrexx.process.NetRexxC
 hello                                                                          
NetRexx portable processor, version NetRexx 3.01RC3, build 21-20120806-0031     
Copyright (c) RexxLA, 2011,2012.  All rights reserved.                          
Parts Copyright (c) IBM Corporation, 1995,2008.                                
Program hello.nrx                                                              
Exception in thread "main" java.lang.NoClassDefFoundError: sun.tools.javac.Main 
        at org.netrexx.process.RxTranslator.compile(RxTranslator.nrx:621)       
        at org.netrexx.process.NetRexxC.process(NetRexxC.nrx:239)               
        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165)                 
        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:154)                 
        at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:152)                 
        at org.netrexx.process.NetRexxC.main(NetRexxC.nrx:91)
Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main               
        at java.net.URLClassLoader.findClass(URLClassLoader.java:434)           
        at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)          
        at java.lang.ClassLoader.loadClass(ClassLoader.java:644)                
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)        
        at java.lang.ClassLoader.loadClass(ClassLoader.java:627)                
        ... 6 more                                                              
I'm running z/os 1.13 and IBM Java 6.0.1 64-bit.
 
I guess there is something missing from my CLASSPATH, but I don't know what that is. Any help?
 
Earl Hodil
_______________________________________________
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: NetRexx Install question

Fernando Cassia-2
In reply to this post by measel
On Fri, Aug 10, 2012 at 8:09 AM, Measel, Mike <[hidden email]> wrote:
> Earl, looks like you have the 1.6 JRE.  You need the 1.6 SDK .  It’s looking
> for tools.jar.

Just thinking aloud... going forward.... isn´t there a way to make
NetRexx check if the system requirements are met the first time it
runs ie "hey! I detected you have the JRE, you need the JDK (Java
development kit). Get it from here: (URL based on detected OS, from an
internal table).

To avoid broken links, the internally stored urls could be
http://netrexx.org/get/jdk/os/name
which would be automatic redirectors that can be dinamically changed as needed.

Just my $0.02
FC

--
During times of Universal Deceit, telling the truth becomes a revolutionary act
- George Orwell

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

rvjansen
In reply to this post by measel
This is one of the cases in which you can use the ecj-4.2.jar Java
compiler that has been included with NetRexx 3.01RC3. Put it somewhere
(in the same directory as NetRexxC.jar - binary upload just like
NetRexxC.jar) and make sure it is on the classpath. Then add
-Dnrx.compiler=ecj to the NetRexxC.sh script on the line that says java
org.netrexx.process.NetRexxC, between java and
org.netrexx.process.NetRexxC .

Of course, installing the SDK also works - but this might not be the
easier solution on a mainframe. NetRexx is able to run on a JRE system,
interpreting and compiling code, nowadays.

best regards,

René.


On 2012-08-10 13:09, Measel, Mike wrote:

> Earl, looks like you have the 1.6 JRE. You need the 1.6 SDK . It's
> looking for tools.jar.
>
> You'll also want the SDK because it has things like the jar command
> that you'll want going forward.
>
>
> http://www-03.ibm.com/systems/z/os/zos/tools/java/products/sdk601_64.html
>
>
> FROM: [hidden email]
> [mailto:[hidden email]] ON BEHALF OF Earl Hodil
>  SENT: Friday, August 10, 2012 5:00 AM
>  TO: [hidden email]
>  SUBJECT: [Ibm-netrexx] NetRexx Install question
>
> Hi,
>
> I'm trying to install NetRexx on my z/os machine. When I tried to
> compile the "hello" sample, this is what I got:
>
> EDH:/Z113/usr/lpp/java/examples/ibm-historic: >java
> org.netrexx.process.NetRexxC
>
>  hello
>
> NetRexx portable processor, version NetRexx 3.01RC3, build
> 21-20120806-0031
>
> Copyright (c) RexxLA, 2011,2012. All rights reserved.
>
> Parts Copyright (c) IBM Corporation, 1995,2008.
>
> Program hello.nrx
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> sun.tools.javac.Main
>
>  at org.netrexx.process.RxTranslator.compile(RxTranslator.nrx:621)
>
>  at org.netrexx.process.NetRexxC.process(NetRexxC.nrx:239)
>
>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165)
>
>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:154)
>
>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:152)
>
>  at org.netrexx.process.NetRexxC.main(NetRexxC.nrx:91)
>
> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main
>
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
>
>  at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)
>
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:644)
>
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
>
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
>
>  ... 6 more
>
> I'm running z/os 1.13 and IBM Java 6.0.1 64-bit.
>
> I guess there is something missing from my CLASSPATH, but I don't
> know
> what that is. Any help?
>
> Earl Hodil

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

Tom Maynard
On 08/10/2012 08:16 AM, rvjansen wrote:
> NetRexx is able to run on a JRE system, interpreting and compiling
> code, nowadays.

And this is due entirely to René's hard work and dedication.  He'll
never take credit for it, so we must all give a round of applause on his
behalf.  <muted clapping>

Hear, hear!

Tom.

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

rvjansen
In reply to this post by Fernando Cassia-2
Fernando,

two things:

1 - we are certainly going to add something like that to the installer
- I agree with Bill's point of view that we should not bother the
NetRexx translator itself with platform knowledge
2 - there is no requirement for the JDK anymore, starting from 3.01, a
JRE will suffice. There is, however, plenty of opportunity for other
classpath problems.

best regards,

René.



On 2012-08-10 14:45, Fernando Cassia wrote:

> On Fri, Aug 10, 2012 at 8:09 AM, Measel, Mike <[hidden email]>
> wrote:
>> Earl, looks like you have the 1.6 JRE.  You need the 1.6 SDK .  It’s
>> looking
>> for tools.jar.
>
> Just thinking aloud... going forward.... isn´t there a way to make
> NetRexx check if the system requirements are met the first time it
> runs ie "hey! I detected you have the JRE, you need the JDK (Java
> development kit). Get it from here: (URL based on detected OS, from
> an
> internal table).
>
> To avoid broken links, the internally stored urls could be
> http://netrexx.org/get/jdk/os/name
> which would be automatic redirectors that can be dinamically changed
> as needed.
>
> Just my $0.02
> FC

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

Fernando Cassia-2
In reply to this post by rvjansen
On Fri, Aug 10, 2012 at 10:16 AM, rvjansen <[hidden email]> wrote:
> Of course, installing the SDK also works - but this might not be the easier
> solution on a mainframe. NetRexx is able to run on a JRE system,
> interpreting and compiling code, nowadays.
>
> best regards,
>
> René.

Very very nice. I remember you once talked about "generating bytecode
directly" and I thought to myself "WTF? why mess with MFC´s design of
generating java source and passing it on to the latest greatest JDK
compiler?".

Of course, I didn´t had in mind the ´minor detail´ of a mainframe user
not being able to install the JDK....

Thanks for adding that feature then, I figure now that it makes sense. :)

FC

--
During times of Universal Deceit, telling the truth becomes a revolutionary act
Durante épocas de Engaño Universal, decir la verdad se convierte en un
Acto Revolucionario
- George Orwell

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

rvjansen
In reply to this post by measel
But Mike, I wonder how you can see that Earl has the JRE only. It might
be just missing the tools.jar on the classpath.
My classpath is like
/opt/ibm/java-s390x-60/lib/tools.jar:/opt/ibm/java-s390x-60/jre/lib/s390x/default/jclSC160/vm.jar

note that it needs both tools.jar and vm.jar with IBM's Java because
otherwise your next error would be Object.class not found.

Anyway, Earls previous error should be solvable by adding ecj.

best regards,

René.



On 2012-08-10 13:09, Measel, Mike wrote:

> Earl, looks like you have the 1.6 JRE. You need the 1.6 SDK . It's
> looking for tools.jar.
>
> You'll also want the SDK because it has things like the jar command
> that you'll want going forward.
>
>
> http://www-03.ibm.com/systems/z/os/zos/tools/java/products/sdk601_64.html
>
>
> FROM: [hidden email]
> [mailto:[hidden email]] ON BEHALF OF Earl Hodil
>  SENT: Friday, August 10, 2012 5:00 AM
>  TO: [hidden email]
>  SUBJECT: [Ibm-netrexx] NetRexx Install question
>
> Hi,
>
> I'm trying to install NetRexx on my z/os machine. When I tried to
> compile the "hello" sample, this is what I got:
>
> EDH:/Z113/usr/lpp/java/examples/ibm-historic: >java
> org.netrexx.process.NetRexxC
>
>  hello
>
> NetRexx portable processor, version NetRexx 3.01RC3, build
> 21-20120806-0031
>
> Copyright (c) RexxLA, 2011,2012. All rights reserved.
>
> Parts Copyright (c) IBM Corporation, 1995,2008.
>
> Program hello.nrx
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> sun.tools.javac.Main
>
>  at org.netrexx.process.RxTranslator.compile(RxTranslator.nrx:621)
>
>  at org.netrexx.process.NetRexxC.process(NetRexxC.nrx:239)
>
>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165)
>
>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:154)
>
>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:152)
>
>  at org.netrexx.process.NetRexxC.main(NetRexxC.nrx:91)
>
> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main
>
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
>
>  at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)
>
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:644)
>
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
>
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
>
>  ... 6 more
>
> I'm running z/os 1.13 and IBM Java 6.0.1 64-bit.
>
> I guess there is something missing from my CLASSPATH, but I don't
> know
> what that is. Any help?
>
> Earl Hodil

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

Fernando Cassia-2
In reply to this post by rvjansen
On Fri, Aug 10, 2012 at 10:25 AM, rvjansen <[hidden email]> wrote:
> I agree with Bill's point of view that we should not bother the NetRexx
> translator itself with platform knowledge

It´s not a matter of fine-grained ´platform knowledge´ just catchng
the three most common platforms (windows, linux, mac os x) and
providing instead of a generic message, a less-intimidating pointer
about the location of the jdk or jre or whatever add-on that the user
might need.

If os=not_on_the_list_of_known_OSs_with_friendly_error_messages then
   print Standard_confusing_message

In the end it´s self-interest to save us all from newbies that come
here crying saying "I just downloaded NetRexx but I can´t run it, it
spits this long ugly error message

...followed by the long ugly error message .

;)

FC

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

rvjansen
In reply to this post by Fernando Cassia-2
Yes, and when reading through the source, for the interpreter part it
is generating the bytecode already.
I added the JRE only feature out of necessity, it also works on Windows
and Linux in locations where you might not be admin enough to install
things - and it is less disruptive than trying to change which of many
JVM's on a given machine in the case you are admin.

I am looking forward to the 3.02 release in which we will try to quell
the install problems once and for all.

best regards,

René.

On 2012-08-10 15:31, Fernando Cassia wrote:

> On Fri, Aug 10, 2012 at 10:16 AM, rvjansen <[hidden email]>
> wrote:
>> Of course, installing the SDK also works - but this might not be the
>> easier
>> solution on a mainframe. NetRexx is able to run on a JRE system,
>> interpreting and compiling code, nowadays.
>>
>> best regards,
>>
>> René.
>
> Very very nice. I remember you once talked about "generating bytecode
> directly" and I thought to myself "WTF? why mess with MFC´s design of
> generating java source and passing it on to the latest greatest JDK
> compiler?".
>
> Of course, I didn´t had in mind the ´minor detail´ of a mainframe
> user
> not being able to install the JDK....
>
> Thanks for adding that feature then, I figure now that it makes
> sense. :)
>
> FC

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

Fernando Cassia-2
In reply to this post by rvjansen
On Fri, Aug 10, 2012 at 10:31 AM, rvjansen <[hidden email]> wrote:
> note that it needs both tools.jar and vm.jar with IBM's Java because
> otherwise your next error would be Object.class not found.

see, checks. If you know about it, netrexx could, too.
;)

FC

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

rvjansen
Problem is, these change all the time. I think putting it in the
installer, with an optional, online database, would be optimal. NetRexx
already knows some Mac and z/Linux paths, but I was planning to take
that out because both have changed already.

BTW, my answer was blocked for some users due to your 'pornographic
expression' in the original post - see if you can guess. It was an
expression of wonder or puzzlement that every 11 year old tweets at
least twice a day. What has the world come to.

René.

On 2012-08-10 15:37, Fernando Cassia wrote:

> On Fri, Aug 10, 2012 at 10:31 AM, rvjansen <[hidden email]>
> wrote:
>> note that it needs both tools.jar and vm.jar with IBM's Java because
>> otherwise your next error would be Object.class not found.
>
> see, checks. If you know about it, netrexx could, too.
> ;)
>
> FC
>
> _______________________________________________
> 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: NetRexx Install question

measel
In reply to this post by rvjansen
Seldom would I argue with Rene but if you're going to do anything more serious than hello world you're gonna want the SDK.

Just one example - the jar command, which is absolutely necessary to examine a jar in the absence of winzip.

And if you want to do any real work on MVS  (read a vsam file for instance)  then you'll need Zee extensions.  

If you're an OMVS user check out BPXBATCH.  Lets you fire up your NetRexx in BATCH !!   YEAH BABY.
________________________________________
From: [hidden email] [[hidden email]] on behalf of rvjansen [[hidden email]]
Sent: Friday, August 10, 2012 8:16 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] NetRexx Install question

This is one of the cases in which you can use the ecj-4.2.jar Java
compiler that has been included with NetRexx 3.01RC3. Put it somewhere
(in the same directory as NetRexxC.jar - binary upload just like
NetRexxC.jar) and make sure it is on the classpath. Then add
-Dnrx.compiler=ecj to the NetRexxC.sh script on the line that says java
org.netrexx.process.NetRexxC, between java and
org.netrexx.process.NetRexxC .

Of course, installing the SDK also works - but this might not be the
easier solution on a mainframe. NetRexx is able to run on a JRE system,
interpreting and compiling code, nowadays.

best regards,

René.


On 2012-08-10 13:09, Measel, Mike wrote:

> Earl, looks like you have the 1.6 JRE. You need the 1.6 SDK . It's
> looking for tools.jar.
>
> You'll also want the SDK because it has things like the jar command
> that you'll want going forward.
>
>
> http://www-03.ibm.com/systems/z/os/zos/tools/java/products/sdk601_64.html
>
>
> FROM: [hidden email]
> [mailto:[hidden email]] ON BEHALF OF Earl Hodil
>  SENT: Friday, August 10, 2012 5:00 AM
>  TO: [hidden email]
>  SUBJECT: [Ibm-netrexx] NetRexx Install question
>
> Hi,
>
> I'm trying to install NetRexx on my z/os machine. When I tried to
> compile the "hello" sample, this is what I got:
>
> EDH:/Z113/usr/lpp/java/examples/ibm-historic: >java
> org.netrexx.process.NetRexxC
>
>  hello
>
> NetRexx portable processor, version NetRexx 3.01RC3, build
> 21-20120806-0031
>
> Copyright (c) RexxLA, 2011,2012. All rights reserved.
>
> Parts Copyright (c) IBM Corporation, 1995,2008.
>
> Program hello.nrx
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> sun.tools.javac.Main
>
>  at org.netrexx.process.RxTranslator.compile(RxTranslator.nrx:621)
>
>  at org.netrexx.process.NetRexxC.process(NetRexxC.nrx:239)
>
>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165)
>
>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:154)
>
>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:152)
>
>  at org.netrexx.process.NetRexxC.main(NetRexxC.nrx:91)
>
> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main
>
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
>
>  at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)
>
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:644)
>
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
>
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
>
>  ... 6 more
>
> I'm running z/os 1.13 and IBM Java 6.0.1 64-bit.
>
> I guess there is something missing from my CLASSPATH, but I don't
> know
> what that is. Any help?
>
> Earl Hodil

_______________________________________________
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: NetRexx Install question

Mike Cowlishaw

> Just one example - the jar command, which is absolutely
> necessary to examine a jar in the absence of winzip.

Not really -- it's just a zipped file, so any of the free zip tools will do, as
will the zip file processor included in Windows.

[But why would one want to inspect the contents of a .jar file anyway, unles
debugging a .jar file builder or or a zip.exe?]

MIke

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

measel
Hard to believe I'm going to argue with Mike and Rene today... oh well.

Ok, but, many of the free tools don't exist for USS/OMVS.  Even the tools that are there were developed by some AIX guys on crack.  

As for jar command, my favorite is to add my classes to the NetrexxR.jar and have a nice little package I can drop anywhere without dependencies.  This also keeps my users from having to install or configure anything.  

Simplicity.

And, when you want to build packages like the big boys, you gotta jar. I can create a servlet in NetRexx and package it correctly and give it to my websphere guy who won't know it's not a "real" java application.


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Mike Cowlishaw
Sent: Friday, August 10, 2012 10:09 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] NetRexx Install question


> Just one example - the jar command, which is absolutely
> necessary to examine a jar in the absence of winzip.

Not really -- it's just a zipped file, so any of the free zip tools will do, as
will the zip file processor included in Windows.

[But why would one want to inspect the contents of a .jar file anyway, unles
debugging a .jar file builder or or a zip.exe?]

MIke

_______________________________________________
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: NetRexx Install question

Mike Cowlishaw
 
> Ok, but, many of the free tools don't exist for USS/OMVS.  

Ah ... OK ...  :-)

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

Reply | Threaded
Open this post in threaded view
|

Re: NetRexx Install question

ThSITC
In reply to this post by measel
H, Mike Measel:

I am in pocess to deliver my RexxFle, etc, on Kenai.

Am trying to incorporate VSAM file access, as well, introducing:

open, close, scratch, etc as new methods (done)
recin, recout (new: ecord oriented I/O)  (in test & development mode)

Any hints where I shall read to be able to READ/WRITE VSAM files ?
Any URL where I can read this up?

Thomas.
==========================================================

Am 10.08.2012 16:06, schrieb Measel, Mike:

> Seldom would I argue with Rene but if you're going to do anything more serious than hello world you're gonna want the SDK.
>
> Just one example - the jar command, which is absolutely necessary to examine a jar in the absence of winzip.
>
> And if you want to do any real work on MVS  (read a vsam file for instance)  then you'll need Zee extensions.
>
> If you're an OMVS user check out BPXBATCH.  Lets you fire up your NetRexx in BATCH !!   YEAH BABY.
> ________________________________________
> From: [hidden email] [[hidden email]] on behalf of rvjansen [[hidden email]]
> Sent: Friday, August 10, 2012 8:16 AM
> To: IBM Netrexx
> Subject: Re: [Ibm-netrexx] NetRexx Install question
>
> This is one of the cases in which you can use the ecj-4.2.jar Java
> compiler that has been included with NetRexx 3.01RC3. Put it somewhere
> (in the same directory as NetRexxC.jar - binary upload just like
> NetRexxC.jar) and make sure it is on the classpath. Then add
> -Dnrx.compiler=ecj to the NetRexxC.sh script on the line that says java
> org.netrexx.process.NetRexxC, between java and
> org.netrexx.process.NetRexxC .
>
> Of course, installing the SDK also works - but this might not be the
> easier solution on a mainframe. NetRexx is able to run on a JRE system,
> interpreting and compiling code, nowadays.
>
> best regards,
>
> René.
>
>
> On 2012-08-10 13:09, Measel, Mike wrote:
>> Earl, looks like you have the 1.6 JRE. You need the 1.6 SDK . It's
>> looking for tools.jar.
>>
>> You'll also want the SDK because it has things like the jar command
>> that you'll want going forward.
>>
>>
>> http://www-03.ibm.com/systems/z/os/zos/tools/java/products/sdk601_64.html
>>
>>
>> FROM: [hidden email]
>> [mailto:[hidden email]] ON BEHALF OF Earl Hodil
>>   SENT: Friday, August 10, 2012 5:00 AM
>>   TO: [hidden email]
>>   SUBJECT: [Ibm-netrexx] NetRexx Install question
>>
>> Hi,
>>
>> I'm trying to install NetRexx on my z/os machine. When I tried to
>> compile the "hello" sample, this is what I got:
>>
>> EDH:/Z113/usr/lpp/java/examples/ibm-historic: >java
>> org.netrexx.process.NetRexxC
>>
>>   hello
>>
>> NetRexx portable processor, version NetRexx 3.01RC3, build
>> 21-20120806-0031
>>
>> Copyright (c) RexxLA, 2011,2012. All rights reserved.
>>
>> Parts Copyright (c) IBM Corporation, 1995,2008.
>>
>> Program hello.nrx
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> sun.tools.javac.Main
>>
>>   at org.netrexx.process.RxTranslator.compile(RxTranslator.nrx:621)
>>
>>   at org.netrexx.process.NetRexxC.process(NetRexxC.nrx:239)
>>
>>   at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165)
>>
>>   at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:154)
>>
>>   at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:152)
>>
>>   at org.netrexx.process.NetRexxC.main(NetRexxC.nrx:91)
>>
>> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main
>>
>>   at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
>>
>>   at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)
>>
>>   at java.lang.ClassLoader.loadClass(ClassLoader.java:644)
>>
>>   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
>>
>>   at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
>>
>>   ... 6 more
>>
>> I'm running z/os 1.13 and IBM Java 6.0.1 64-bit.
>>
>> I guess there is something missing from my CLASSPATH, but I don't
>> know
>> what that is. Any help?
>>
>> Earl Hodil
> _______________________________________________
> 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 CEO ThSITC IT Consulting KG Erdbergstr. 52-60/1/13 1030
Wien Austria, Europe Skype ID: Thomas.Schneider.Wien Member of the Rexx
Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's
Team (www.netrexx.org)

_______________________________________________
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: NetRexx Install question

rvjansen
Thomas,

Jzos - told you.

René

On 10 aug. 2012, at 19:41, Thomas Schneider <[hidden email]> wrote:

> H, Mike Measel:
>
> I am in pocess to deliver my RexxFle, etc, on Kenai.
>
> Am trying to incorporate VSAM file access, as well, introducing:
>
> open, close, scratch, etc as new methods (done)
> recin, recout (new: ecord oriented I/O)  (in test & development mode)
>
> Any hints where I shall read to be able to READ/WRITE VSAM files ?
> Any URL where I can read this up?
>
> Thomas.
> ==========================================================
>
> Am 10.08.2012 16:06, schrieb Measel, Mike:
>> Seldom would I argue with Rene but if you're going to do anything more serious than hello world you're gonna want the SDK.
>>
>> Just one example - the jar command, which is absolutely necessary to examine a jar in the absence of winzip.
>>
>> And if you want to do any real work on MVS  (read a vsam file for instance)  then you'll need Zee extensions.
>>
>> If you're an OMVS user check out BPXBATCH.  Lets you fire up your NetRexx in BATCH !!   YEAH BABY.
>> ________________________________________
>> From: [hidden email] [[hidden email]] on behalf of rvjansen [[hidden email]]
>> Sent: Friday, August 10, 2012 8:16 AM
>> To: IBM Netrexx
>> Subject: Re: [Ibm-netrexx] NetRexx Install question
>>
>> This is one of the cases in which you can use the ecj-4.2.jar Java
>> compiler that has been included with NetRexx 3.01RC3. Put it somewhere
>> (in the same directory as NetRexxC.jar - binary upload just like
>> NetRexxC.jar) and make sure it is on the classpath. Then add
>> -Dnrx.compiler=ecj to the NetRexxC.sh script on the line that says java
>> org.netrexx.process.NetRexxC, between java and
>> org.netrexx.process.NetRexxC .
>>
>> Of course, installing the SDK also works - but this might not be the
>> easier solution on a mainframe. NetRexx is able to run on a JRE system,
>> interpreting and compiling code, nowadays.
>>
>> best regards,
>>
>> René.
>>
>>
>> On 2012-08-10 13:09, Measel, Mike wrote:
>>> Earl, looks like you have the 1.6 JRE. You need the 1.6 SDK . It's
>>> looking for tools.jar.
>>>
>>> You'll also want the SDK because it has things like the jar command
>>> that you'll want going forward.
>>>
>>>
>>> http://www-03.ibm.com/systems/z/os/zos/tools/java/products/sdk601_64.html
>>>
>>>
>>> FROM: [hidden email]
>>> [mailto:[hidden email]] ON BEHALF OF Earl Hodil
>>>  SENT: Friday, August 10, 2012 5:00 AM
>>>  TO: [hidden email]
>>>  SUBJECT: [Ibm-netrexx] NetRexx Install question
>>>
>>> Hi,
>>>
>>> I'm trying to install NetRexx on my z/os machine. When I tried to
>>> compile the "hello" sample, this is what I got:
>>>
>>> EDH:/Z113/usr/lpp/java/examples/ibm-historic: >java
>>> org.netrexx.process.NetRexxC
>>>
>>>  hello
>>>
>>> NetRexx portable processor, version NetRexx 3.01RC3, build
>>> 21-20120806-0031
>>>
>>> Copyright (c) RexxLA, 2011,2012. All rights reserved.
>>>
>>> Parts Copyright (c) IBM Corporation, 1995,2008.
>>>
>>> Program hello.nrx
>>>
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> sun.tools.javac.Main
>>>
>>>  at org.netrexx.process.RxTranslator.compile(RxTranslator.nrx:621)
>>>
>>>  at org.netrexx.process.NetRexxC.process(NetRexxC.nrx:239)
>>>
>>>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:165)
>>>
>>>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:154)
>>>
>>>  at org.netrexx.process.NetRexxC.main2(NetRexxC.nrx:152)
>>>
>>>  at org.netrexx.process.NetRexxC.main(NetRexxC.nrx:91)
>>>
>>> Caused by: java.lang.ClassNotFoundException: sun.tools.javac.Main
>>>
>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
>>>
>>>  at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:665)
>>>
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:644)
>>>
>>>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
>>>
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
>>>
>>>  ... 6 more
>>>
>>> I'm running z/os 1.13 and IBM Java 6.0.1 64-bit.
>>>
>>> I guess there is something missing from my CLASSPATH, but I don't
>>> know
>>> what that is. Any help?
>>>
>>> Earl Hodil
>> _______________________________________________
>> 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 CEO ThSITC IT Consulting KG Erdbergstr. 52-60/1/13 1030 Wien Austria, Europe Skype ID: Thomas.Schneider.Wien Member of the Rexx Languge Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team (www.netrexx.org)
>
> _______________________________________________
> 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/

12