I just committed java2nrx 1.0.2 to https://svn.kenai.com/svn/netrexx~svn-contrib.
Here's the changelist - Changed protected modifiers to inheritable - Fixed VariableDeclaration as array - Fixed instanceof - Fixed static final properties - Fixed protected methods (no equivalent in NetRexx) - Fixed synchronized methods and properties - Fixed transient properties - Fixed if then else statement on single line - Tentative support for anonymous classes - Modified strict comparison (<< >> <<= >>=) to not strict - Fixed for(;;) loop instruction - java2nrx.sh reads .java.2nrx files if existing - Modified Makefile, use 'make always java2nrx.jar' to trigger ant build Please do check it out and post comments (with testcases) on this list. Marc Thanks to Alan to elaborate on anonymous classes _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
I still get no response from my querry: what happens if you do Java1 -> NetRexx -> Java2 --- Does Java2 look like Java1? Bob Hamilton Richardson Texas USA
On Sun, Jun 24, 2012 at 11:55 AM, Marc Remes <[hidden email]> wrote: I just committed java2nrx 1.0.2 to https://svn.kenai.com/svn/netrexx~svn-contrib. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
On 06/24/2012 12:36 PM, Robert Hamilton wrote:
> what happens if you do Java1 -> NetRexx -> Java2 --- Does Java2 look > like Java1? The answer is, "Yes, of course." The output of the NetRexx translator is Java source code. If you set your options so that it remains when the process has completed, you can easily view it in an editor, print it out, or frame it to share with your loved ones. Why anyone who uses NetRexx would ever want to look at Java source again is another (better) question entirely. Tom. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Your (Better) question pre-empted my next one; Thanx BOBH On Sun, Jun 24, 2012 at 12:40 PM, Tom Maynard <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Perhaps one would not want to look at the Java source, but it could have an important role in a commercial environment. The management might be leery of allowing programmers to mix NetRexx and Java. The presence of the Java source could make the difference. Mike has discussed this "security blanket" aspect in the past. To make this air tight, a project might actually build by compiling NetRexx's Java output. Any discrepancies in NetRexx's translation would be caught by ordinary testing of the product.
{Why do you want to use this NetRexx in the project? We like it and can produce more working code per man hour than with Java. Is it safe? Every bit of its output is tested for correctness and compatibility with Java by the build process and our ordinary test procedures.] On Sun, Jun 24, 2012 at 1:59 PM, Robert Hamilton <[hidden email]> wrote:
-- "One can live magnificently in this world if one knows how to work and how to love." -- Leo Tolstoy _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Marc Remes-2
Great work. Thanks. Will test more later.
On Sun, Jun 24, 2012 at 12:55 PM, Marc Remes <[hidden email]> wrote: I just committed java2nrx 1.0.2 to https://svn.kenai.com/svn/netrexx~svn-contrib. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Marc Remes-2
Marc,
Sounds great, I have not looked but will soon! Does this include an up and running in minutes instruction? Michael -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Marc Remes Sent: Sunday, June 24, 2012 18:56 To: IBM Netrexx Subject: [Ibm-netrexx] Announcing java2nrx 1.0.2 I just committed java2nrx 1.0.2 to https://svn.kenai.com/svn/netrexx~svn-contrib. Here's the changelist - Changed protected modifiers to inheritable - Fixed VariableDeclaration as array - Fixed instanceof - Fixed static final properties - Fixed protected methods (no equivalent in NetRexx) - Fixed synchronized methods and properties - Fixed transient properties - Fixed if then else statement on single line - Tentative support for anonymous classes - Modified strict comparison (<< >> <<= >>=) to not strict - Fixed for(;;) loop instruction - java2nrx.sh reads .java.2nrx files if existing - Modified Makefile, use 'make always java2nrx.jar' to trigger ant build Please do check it out and post comments (with testcases) on this list. Marc Thanks to Alan to elaborate on anonymous classes _______________________________________________ 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/ |
seconds .. run .sh or .bat in directory to which you unzip
Marc Michael Dag <[hidden email]> wrote: Marc, _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Robert L Hamilton
On 06/24/2012 07:36 PM, Robert Hamilton wrote:
> I still get no response from my querry: what happens if you do Java1 -> NetRexx -> Java2 --- Does Java2 look like Java1? > Bob Hamilton > Richardson Texas USA << $ cat HelloWorld.java public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } } $ cat HelloWorld.nrx class HelloWorld public method main( args=String[] ) static System.out.println("Hello, World") $ cat HelloWorld.java.keep /* Generated from 'HelloWorld.nrx' 25 Jun 2012 13:09:51 [v2.05] */ /* Options: Crossref Decimal Format Java Logo Trace2 Verbose3 */ public class HelloWorld{ private static final java.lang.String $0="HelloWorld.nrx"; public static void main(java.lang.String args[]){ java.lang.System.out.println("Hello, World"); return;} private HelloWorld(){return;} >> Truth is that java2nrx only translates the more simple java files automatically. Most likely there will be some translation fault in the generated .nrx, which will not compile. Even so, better always visually verify the translation, but it sure goes a long way in 'heavy-lifting' ; I do already see some obvious errors, such as multiple 'properties' statements. Marc _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by Marc Remes-2
I'm having trouble getting into kenai. The link did not work for me. I can get logged in, but then I can't find java2nrx Kenneth Klein Systems Specialist 502-868-3644 859-750-5179 (Cell) 502-868-2298 (Fax) [hidden email] _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Hi Kenneth,
java2nrx is part of the contrib repository, you can check it out using svn co https://svn.kenai.com/svn/netrexx~svn-contrib . I will provide a downloadable file that does not need subversion in the downloads section, unfortunately, somewhere later this week (if no-one (Marc?) beats me to it - and we might have a nightly build setup and move it to the main repository soon). best regards, René Jansen. On 2012-06-26 16:03, [hidden email] wrote: > I'm having trouble getting into kenai. The link did not work for me. > I > can get logged in, but then I can't find java2nrx > > Kenneth Klein > Systems Specialist > 502-868-3644 > 859-750-5179 (Cell) > 502-868-2298 (Fax) > [hidden email] _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Thanks. Actually the link did indeed open a page in my browser; I just had not seen it. I now have it installed and am testing. Kenneth Klein
Hi Kenneth, java2nrx is part of the contrib repository, you can check it out using svn co https://svn.kenai.com/svn/netrexx~svn-contrib . I will provide a downloadable file that does not need subversion in the downloads section, unfortunately, somewhere later this week (if no-one (Marc?) beats me to it - and we might have a nightly build setup and move it to the main repository soon). best regards, René Jansen. On 2012-06-26 16:03, [hidden email] wrote: > I'm having trouble getting into kenai. The link did not work for me. > I > can get logged in, but then I can't find java2nrx > > Kenneth Klein > Systems Specialist > 502-868-3644 > 859-750-5179 (Cell) > 502-868-2298 (Fax) > [hidden email] _______________________________________________ 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/ |
I have java2nrx installed @ C:\lib\java2nrx.jar. I get the usage message. But it is not handling my classpath correctly or something. You can see a display of my path and classpath below. C:\Documents and Settings\keklein\REXX\NetRexx\bjcp8+ Tue 06/26/2012 11:22 > java2nrx Usage: java2nrx [-nrc] [-stdout] [-run] [other options] <filename> C:\Documents and Settings\keklein\REXX\NetRexx\bjcp8+ Tue 06/26/2012 11:24 > java2nrx GridBagLayoutExample.java Unable to access jarfile C:\Documents C:\Documents and Settings\keklein\REXX\NetRexx\bjcp8+ Tue 06/26/2012 11:24 > listpath C:\Documents and Settings\keklein\REXX\NetRexx\bjcp8+ Tue 06/26/2012 11:24 > echo off "This is a nice list of your path at the moment:" . C:\Documents and Settings\keklein\ C:\Documents and Settings\keklein\REXX\NetRexx\bin C:\Documents and Settings\keklein\REXX\NrxRedBk\Redbook C:\Program Files\vim\vim73 C:\PROGRA~1\IBM\SQLLIB\BIN C:\PROGRA~1\IBM\SQLLIB\FUNCTION C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL C:\Program Files\IBM\GSK7\bin C:\Program Files\IBM\GSK7\lib C:\Program Files\IBM\ITM\bin C:\Program Files\IBM\ITM\bin\dll C:\Program Files\IBM\ITM\InstallITM C:\Program Files\IBM\ITM\TMAITM6 C:\Program Files\IBM\Personal Communications\ C:\Program Files\IBM\Trace Facility\ C:\Program Files\Java\jdk1.6.0_18\bin C:\Program Files\QuickTime\QTSystem\ C:\program files\rmf\rmf spreadsheet reporter\ C:\Program Files\Windows Imaging\ C:\WINDOWS C:\WINDOWS\system32 C:\WINDOWS\System32\Wbem C:\Documents and Settings\keklein\My Documents\apache-ant-1.8.2\bin C:\netrexxify "This is a nice list of your classpath at the moment:" . C:\Program Files\Java\jre6\lib\ext\NetRexxC.jar C:\Program Files\Java\jre6\lib\ext\tools.jar C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar C:\PROGRA~1\IBM\SQLLIB\bin C:\PROGRA~1\IBM\SQLLIB\java\common.jar C:\Program Files\Java\jre6\lib\ext\QTJava.zip C:\lib\Rexx2Nrx.jar C:\Documents and Settings\keklein\REXX\NetRexx\lib\NetRexxC.jar C:\Documents and Settings\keklein\REXX\NrxRedBk\Redbook Done. C:\Documents and Settings\keklein\REXX\NetRexx\bjcp8+ Tue 06/26/2012 11:24 _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
With windows and spaces in the classpath you must use quotes. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |