Popularity of NetRexx

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

Re: Popularity of NetRexx

Fernando Cassia-2
On Wed, May 9, 2012 at 11:16 AM, René Jansen <[hidden email]> wrote:
> Angry Kings.

He he he.... very amusing and interesting title for a game.

I envision a "Donkey Kong" style game where the NetRexx King (from the
TNRL book) struggles to reach his Castle and re-gain control of it
while an evil Dragon named Bill (or Ballmer ;) throws balls of fire at
him...

If NetRexx could be used to design a nice cool game, it' d be both a
highlight of its strenghts, and also a great developer' s challenge.

Now, is there any game developer on this list?. We need one, pronto. ;)

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
|

question: how to load a text file that is in the same .jar file.

kenner

If I run my simple netrexx program in a subdirectory where the class files and the .txt files reside, all runs well. If I jar the class files and the .txt files and copy into a new subdirectory, then I can't read the .txt files. I don't want to update them in the jar file, just read into a table.

This works:

Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
        if Debug_Level > 3 then trace results
        reset()
        fileName = aFileName
        say 'Processing infile.' aFileName
        do
                bufferIn=BufferedReader(FileReader(afileName))
                 
                catch Z=IOException  --, X=FileNotFoundException
                        say '# error opening file' Z.getMessage
--                         say '# File not found.' X.getMessage
--                return inhandle
        end
/* The processing loop to load our table from the txt file.               ***/
        loop sub_i = 0
                line = bufferIn.readLine                                 -- get next line as Rexx string
                if line == null then leave sub_i          -- normal end of file
                parse line '"' myanswer '"' myquestion
                question1[sub_i] = myquestion.strip
                answer1[sub_i] = myanswer.strip
                ans_done[sub_i] = 0
        end sub_i

Something like this should work (but I'm missing something):

Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
        if Debug_Level > 3 then trace results
        reset()
        fileName = aFileName
        say 'Processing infile.' aFileName
        do
            MY_jarFile = JarFile("frontend2.jar");
            entry = MY_jarFile.getJarEntry(aFileName);
            bufferIn = InputStreamReader(MY_jarFile.getInputStream(entry) );
--                bufferIn=BufferedReader(FileReader(input))
                 
                catch Z=IOException  --, X=FileNotFoundException
                        say '# error opening file' Z.getMessage
--                         say '# File not found.' X.getMessage
--                return inhandle
        end


Kenneth Klein

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

Reply | Threaded
Open this post in threaded view
|

Re: question: how to load a text file that is in the same .jar file.

rvjansen
If you run from a jar, your relative classpath is from the start of the jar directory. Google for loadResourceAsStream for the solution.

best regards,

René.


On 9 mei 2012, at 12:46, [hidden email] wrote:


If I run my simple netrexx program in a subdirectory where the class files and the .txt files reside, all runs well. If I jar the class files and the .txt files and copy into a new subdirectory, then I can't read the .txt files. I don't want to update them in the jar file, just read into a table.

This works:

Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
        if Debug_Level > 3 then trace results
        reset()
        fileName = aFileName
        say 'Processing infile.' aFileName
        do
                bufferIn=BufferedReader(FileReader(afileName))
                 
                catch Z=IOException  --, X=FileNotFoundException
                        say '# error opening file' Z.getMessage
--                         say '# File not found.' X.getMessage
--                return inhandle
        end
/* The processing loop to load our table from the txt file.               ***/
        loop sub_i = 0
                line = bufferIn.readLine                                 -- get next line as Rexx string
                if line == null then leave sub_i          -- normal end of file
                parse line '"' myanswer '"' myquestion
                question1[sub_i] = myquestion.strip
                answer1[sub_i] = myanswer.strip
                ans_done[sub_i] = 0
        end sub_i

Something like this should work (but I'm missing something):

Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
        if Debug_Level > 3 then trace results
        reset()
        fileName = aFileName
        say 'Processing infile.' aFileName
        do
            MY_jarFile = JarFile("frontend2.jar");
            entry = MY_jarFile.getJarEntry(aFileName);
            bufferIn = InputStreamReader(MY_jarFile.getInputStream(entry) );
--                bufferIn=BufferedReader(FileReader(input))
                 
                catch Z=IOException  --, X=FileNotFoundException
                        say '# error opening file' Z.getMessage
--                         say '# File not found.' X.getMessage
--                return inhandle
        end


Kenneth Klein
_______________________________________________
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: Popularity of NetRexx

Tom Maynard
In reply to this post by rvjansen
On 05/09/2012 09:16 AM, René Jansen wrote:
>   what kind of demo's and benchmarks we should produce, while lacking the time to do our own Angry Kings.

Um, how about "Angry Hackers" -- where a storm of zombie-like, mainframe
dinosaurs attack a building that looks surprisingly like Oracle HQ?  The
goal would be to "rescue" the JVM and destroy all traces of Java along
the way (with "achievements" for knocking out competing alternative JVM
languages).

Of course, I'm kidding.  I actually bear Java no ill will (Oracle itself
may be another story), although upon my first exposure when it first
appeared I did think that it was a "COBOL version of C."  Lots and lots
of ceremony.

I will, however, give some thought to what might be a killer app for
NetRexx ... most likely on Android, where there is a lot of exposure.  I
love to cogitate (my wife calls it something else entirely).

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: Popularity of NetRexx

George Hovey-2
In reply to this post by Fernando Cassia-2
Rene, Tom, and other Killer App fans

Your ideas on the role of a killer app in exciting developers ring true to me -- people like to imitate success, perhaps in the hope that lightning will strike twice.

But the key word is success. which means (for the benefit of non-American readers) make big money.  That, and not producing cool code, is what those developers are yearning for.

Can anybody here actually create a money-making Killer App that will get app developer's attention?  I suspect that it is a prerequisite to have the mind of a twenty-something, but more importantly, lots of luck.  Because for every Angry Birds there are vast numbers flops.

Furthermore, if anyone here could produce one, wouldn't he have long since done so and decamped, or at least let us know?

Perhaps the Killer App will fall from heaven, but I fear it's a new Godot:  we finally got beyond Waiting for IBM only to run smack into Waiting for Killer App.

I realize this is very negative, but I feel frustrated  by what I perceive to be our failure to go after the one group that promises major relief for our problems in "growing" NetRexx: Java programmers.  They would bring an influx of experienced programmers who can learn NetRexx in a (rhetorical)  blink, because they are immune to one of NetRexx's greatest stumbling blocks for newcomers: understanding NetRexx's relationship to Java.  The attractant, of course, is a clean, lean replacement syntax, as well as some significant built-ins.

To me, that's a positive idea.  But this is not the first time I've brought this up, and it's never raised a flicker of interest.  I wonder if this isn't due to a sense of proprietorship: we've gone through something like Mao's Long March to get here and we don't look favorably on outsiders flouncing in to give their two cents on "our" language.

For my part, I don't wish to "own" NetRexx.  Having followed this forum during the dark ages, when communications were about as frequent as SETI encounters, I feel a grave sense of injustice that NetRexx, and its inventor, do not occupy the place they merit in the computing pantheon.  I want to see its development in the hands of people who recognize its value, and have the talent and means to develop it, and I'm not fussy about their origin.  That program will require a lot more hands and minds than are currently available.



On Wed, May 9, 2012 at 10:44 AM, Fernando Cassia <[hidden email]> wrote:
On Wed, May 9, 2012 at 11:16 AM, René Jansen <[hidden email]> wrote:
> Angry Kings.

He he he.... very amusing and interesting title for a game.

I envision a "Donkey Kong" style game where the NetRexx King (from the
TNRL book) struggles to reach his Castle and re-gain control of it
while an evil Dragon named Bill (or Ballmer ;) throws balls of fire at
him...

If NetRexx could be used to design a nice cool game, it' d be both a
highlight of its strenghts, and also a great developer' s challenge.

Now, is there any game developer on this list?. We need one, pronto. ;)

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/



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

Reply | Threaded
Open this post in threaded view
|

Re: question: how to load a text file that is in the same .jar file.

kenner
In reply to this post by rvjansen

I found this snippet that seems to apply to what I am trying to do"

public void readTextFromJar(String s) {
    
String thisLine;
    
try {
      
InputStream is = getClass().getResourceAsStream(s);
      
BufferedReader br = new BufferedReader
         
(new InputStreamReader(is));
      
while ((thisLine = br.readLine()) != null) {  
         
System.out.println(thisLine);
         
}
      
}
    
catch (Exception e) {
      
e.printStackTrace();
      
}
  
}
}


Now, how to I translate this into netrexx?



Kenneth Klein



René Jansen <[hidden email]>
Sent by: [hidden email]

05/09/2012 12:55 PM

Please respond to
IBM Netrexx <[hidden email]>

To
IBM Netrexx <[hidden email]>
cc
Subject
Re: [Ibm-netrexx] question: how to load a text file that is in the        same .jar file.





If you run from a jar, your relative classpath is from the start of the jar directory. Google for loadResourceAsStream for the solution.

best regards,

René.


On 9 mei 2012, at 12:46, kenneth.klein@... wrote:


If I run my simple netrexx program in a subdirectory where the class files and the .txt files reside, all runs well. If I jar the class files and the .txt files and copy into a new subdirectory, then I can't read the .txt files. I don't want to update them in the jar file, just read into a table.


This works:


Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
       if Debug_Level > 3 then trace results

       reset()

       fileName = aFileName

       say 'Processing infile.' aFileName

       do
               bufferIn=BufferedReader(FileReader(afileName))

               
 
               catch Z=IOException  --, X=FileNotFoundException
                       say '# error opening file' Z.getMessage

--                         say '# File not found.' X.getMessage

--                return inhandle

       end

/* The processing loop to load our table from the txt file.               ***/

       loop sub_i = 0
               line = bufferIn.readLine                                 -- get next line as Rexx string

               if line == null then leave sub_i          -- normal end of file

               parse line '"' myanswer '"' myquestion

               question1[sub_i] = myquestion.strip

               answer1[sub_i] = myanswer.strip

               ans_done[sub_i] = 0

       end sub_i


Something like this should work (but I'm missing something):


Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
       if Debug_Level > 3 then trace results

       reset()

       fileName = aFileName

       say 'Processing infile.' aFileName

       do
           MY_jarFile = JarFile("frontend2.jar");

           entry = MY_jarFile.getJarEntry(aFileName);

           bufferIn = InputStreamReader(MY_jarFile.getInputStream(entry) );

--                bufferIn=BufferedReader(FileReader(input))

               
 
               catch Z=IOException  --, X=FileNotFoundException
                       say '# error opening file' Z.getMessage

--                         say '# File not found.' X.getMessage

--                return inhandle

       end



Kenneth Klein

_______________________________________________
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: Popularity of NetRexx

Tom Maynard
In reply to this post by George Hovey-2
On 05/09/2012 01:02 PM, George Hovey wrote:
> I feel frustrated  by what I perceive to be our failure to go after
> the one group that promises major relief for our problems in "growing"
> NetRexx: Java programmers

I have already posted to this list the invitation I received to write an
article (or series of articles) on NetRexx for publication on DZone.  I
recused myself and passed along the opportunity to everyone else.  
[Okay, "recuse" is being disingenuous: I simply don't feel that I'm
qualified.]

As far as I know nobody took that ball and ran with it.

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: Popularity of NetRexx

Jason Martin
Ok, My Two Cents and Killer Apps.

And as of today, that's Two more than I have earned in one year.

And I mean that, no income from any source.
(Health, lack of Jobs I want to do, and I do not want to move again.)
 
Mobile Apps on any platform have one problem.

There are 100's of thousands of them and most are free.

Here is what I suggest for the benefit of NetRexx.

All the pieces are there.

Any Browser with Javascript enabled.

Those cloud things. You know Rain Forest, Big Numbers, and whoever..
    (Or just a normal box)

Because clouds can hide the Sun.

You get to edit NetRexx right in your Browser.

Watch it compile. (Ajax, dish soap, whatever.)

Fix the bugs.

For the GUI. Apache Pivot, Applets, Javascript or anything your browser can show.

When you done. It returns a nice packaged jar with all the depends.

It uses that web cranky thing to pull what you need
    from those that own and share freely.













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

Reply | Threaded
Open this post in threaded view
|

Re: Popularity of NetRexx

Michael Dag

 

Below is exactly my problem too… (quoted earlier post from Kenneth)

So much java code and stuff on the web, but how to quickly turn this into readable/usable NetRexx?

 

Killer App for me would be Java2Nrx webpage or something, that could help me write more NetRexx and to the outside

world who do not know NetRexx, we can call it “your code” but then a lot easier… less code, easier to understand easier to maintain I guess…

 

Killer App would be to reduce this to 3 lines of working NetRexx that make sense to anyone who has ever seen a program…

 

This stuff below is still abracadabra to my brain…

 

<quote>

 

I found this snippet that seems to apply to what I am trying to do"

public void readTextFromJar(String s) {
    String thisLine;
    try {
      InputStream is = getClass().getResourceAsStream(s);
      BufferedReader br = new BufferedReader
         (new InputStreamReader(is));
      while ((thisLine = br.readLine()) != null) {  
         System.out.println(thisLine);
         }
      }
    catch (Exception e) {
      e.printStackTrace();
      }
  }
}

Now, how to I translate this into netrexx?

Kenneth Klein

</quote>

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Martin
Sent: Wednesday, May 09, 2012 21:05
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Popularity of NetRexx

 

Ok, My Two Cents and Killer Apps.

And as of today, that's Two more than I have earned in one year.

And I mean that, no income from any source.
(Health, lack of Jobs I want to do, and I do not want to move again.)
 
Mobile Apps on any platform have one problem.

There are 100's of thousands of them and most are free.

Here is what I suggest for the benefit of NetRexx.

All the pieces are there.

Any Browser with Javascript enabled.

Those cloud things. You know Rain Forest, Big Numbers, and whoever..
    (Or just a normal box)

Because clouds can hide the Sun.

You get to edit NetRexx right in your Browser.

Watch it compile. (Ajax, dish soap, whatever.)

Fix the bugs.

For the GUI. Apache Pivot, Applets, Javascript or anything your browser can show.

When you done. It returns a nice packaged jar with all the depends.

It uses that web cranky thing to pull what you need
    from those that own and share freely.












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

Reply | Threaded
Open this post in threaded view
|

Re: Popularity of NetRexx

Fernando Cassia-2
In reply to this post by Tom Maynard
On Wed, May 9, 2012 at 2:27 PM, Tom Maynard <[hidden email]> wrote:
> I will, however, give some thought to what might be a killer app for NetRexx
> ... most likely on Android, where there is a lot of exposure.

I don't feel mobile is the new holy grail. And Java on mobile is very
limited (if we're talking about J2ME aka true Java and not Google's
stealing of Java ;).

I think the holy grail would be ie to create a cross-platform Java app
that docks to systray and lets you mount and unmount cloud storage
services with ease.

Right now, SugarSync, Dropbox, etc are using the "let's port our app
to every OS on earth, separately" instead of doing the RIGHT THING(TM)
and coding their apps in Java. Java excells at Network-centric apps,
so why they decided to do native apps for every OS is beyond me...

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: Popularity of NetRexx

Jason Martin
Kenneth try :

    method readTextFromJar( s=String )
        thisLine = String

        do
            is = InputStream
            is = getClass().getResourceAsStream(s)
            br = BufferedReader
            br = BufferedReader(InputStreamReader(is))
            loop while (thisLine = br.readLine()) \== null
                System.out.println(thisLine)

            end
         catch  e=Exception
            e.printStackTrace()
        end

Some times,  the trick with snippets is to keep a empty main.java around so you can paste it in and run java2nrx

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

Reply | Threaded
Open this post in threaded view
|

Re: Popularity of NetRexx

Fernando Cassia-2
In reply to this post by Tom Maynard
On Wed, May 9, 2012 at 2:27 PM, Tom Maynard <[hidden email]> wrote:
> (Oracle itself may be another story)

Killing Oracle will surely mean Java's total disarray and demise. If
there's someone who's been reinvigorating Java it's them, with
OpenJDK, the JVM langugages push, etc.

Every other major vendor has its own agenda that doesn't include Java
(Novell=Mono, Microsoft=HTML5, .Net, Apple=Objective-C and walled
gardens ;->, Adobe=Flash, HTML5, Hot-AIR, Google=Android/Davlik, DART,
GO, RedHat=Server-side JVM, mostly).

So while I couldn' t care less about Oracle' s proprietary products
and I wouldn' t touch any of them with a 20-feet pole, I do support
the work they' re doing with Sun' s FOSS products: Virtualbox,
Glassfish, MySQL, NetBeans and OpenJDK...

Not to mention that Linux will soon get a great filesystem like Butter
(BTRFS) developed by 'evil'  *sarcasm* Oracle -integrated into the
mainline kernel last February- that puts it on equal foot with
Microsoft' s ReFS in the latest Win Server...

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: question: how to load a text file that is in the same .jar file.

Jason Martin
In reply to this post by kenner
Kenneth try :

    method readTextFromJar( s=String )
        thisLine = String

        do
            is = InputStream
            is = getClass().
getResourceAsStream(s)
            br = BufferedReader
            br = BufferedReader(InputStreamReader(is))
            loop while (thisLine = br.readLine()) \== null
                System.out.println(thisLine)

            end
         catch  e=Exception
            e.printStackTrace()
        end

Some times,  the trick with snippets is to keep a empty main.java around so you can paste it in and run java2nrx


On Wed, May 9, 2012 at 2:11 PM, <[hidden email]> wrote:

I found this snippet that seems to apply to what I am trying to do"

public void readTextFromJar(String s) {
    
String thisLine;
    
try {
      
InputStream is = getClass().getResourceAsStream(s);
      
BufferedReader br = new BufferedReader
         
(new InputStreamReader(is));
      
while ((thisLine = br.readLine()) != null) {  
         
System.out.println(thisLine);
         
}
      
}
    
catch (Exception e) {
      
e.printStackTrace();
      
}
  
}
}


Now, how to I translate this into netrexx?



Kenneth Klein



René Jansen <[hidden email]>
Sent by: [hidden email]

05/09/2012 12:55 PM

Please respond to
IBM Netrexx <[hidden email]>

To
IBM Netrexx <[hidden email]>
cc
Subject
Re: [Ibm-netrexx] question: how to load a text file that is in the        same .jar file.





If you run from a jar, your relative classpath is from the start of the jar directory. Google for loadResourceAsStream for the solution.

best regards,

René.


On 9 mei 2012, at 12:46, [hidden email] wrote:


If I run my simple netrexx program in a subdirectory where the class files and the .txt files reside, all runs well. If I jar the class files and the .txt files and copy into a new subdirectory, then I can't read the .txt files. I don't want to update them in the jar file, just read into a table.


This works:


Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
       if Debug_Level > 3 then trace results

       reset()

       fileName = aFileName

       say 'Processing infile.' aFileName

       do
               bufferIn=BufferedReader(FileReader(afileName))

               
 
               catch Z=IOException  --, X=FileNotFoundException
                       say '# error opening file' Z.getMessage

--                         say '# File not found.' X.getMessage

--                return inhandle

       end

/* The processing loop to load our table from the txt file.               ***/

       loop sub_i = 0
               line = bufferIn.readLine                                 -- get next line as Rexx string

               if line == null then leave sub_i          -- normal end of file

               parse line '"' myanswer '"' myquestion

               question1[sub_i] = myquestion.strip

               answer1[sub_i] = myanswer.strip

               ans_done[sub_i] = 0

       end sub_i


Something like this should work (but I'm missing something):


Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
       if Debug_Level > 3 then trace results

       reset()

       fileName = aFileName

       say 'Processing infile.' aFileName

       do
           MY_jarFile = JarFile("frontend2.jar");

           entry = MY_jarFile.getJarEntry(aFileName);

           bufferIn = InputStreamReader(MY_jarFile.getInputStream(entry) );

--                bufferIn=BufferedReader(FileReader(input))

               
 
               catch Z=IOException  --, X=FileNotFoundException
                       say '# error opening file' Z.getMessage

--                         say '# File not found.' X.getMessage

--                return inhandle

       end



Kenneth Klein

_______________________________________________
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/




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

Reply | Threaded
Open this post in threaded view
|

Re: question: how to load a text file that is in the same .jar file.

kenner

Thanks, Jason

Good tip on java2nrx, I'll work on that.

I'm a whole lot closer, but this concept still drives me up the wall:

Error: Cannot refer to a non-static method directly from a static instruction

Here's more of my code. Maybe you can see thru my inability to understand static and non-static methods and instructions.

                options verbose4 trace1 logo
import javax.swing.
import javax.swing.text
import java.awt.GridBagLayout
import java.awt.Graphics
import java.awt.GridBagConstraints
import java.awt.event.ActionListener
import java.awt.event.ActionEvent
import java.text.
import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;
import netrexx.lang.Rexx
import java.io.
 
class Retry
        properties inheritable static

                question1 = Rexx[500]
                answer1 = Rexx[500]
                ans_done = int[500]
                sub_i = int 500
                search_cnt = int 0
                I = int -1
                response1 = Rexx
                bool = boolean 1
                randomize = boolean 0
                fileName = Rexx
                textline = Rexx
                DaScore = Rexx
                Start_Time = long
                Debug_Level = int 5
                               
method main(s=String[]) static
        if Debug_Level > 3 then trace results
-- Executed nomally from FrontEnd2, if run standalone these text items are listed        
if question1[0] == null then do
                loop label PickFile Until response1 = "C" | response1 = "F"| -
                                                                        response1 = "G" | response1 = "Y"| -
                                                                        response1 = "T" | response1 = "S"| -
                                                                        response1 = "M" | response1 = "D"
                say
                say 'Enter a "C" for the Commercial Examples exercises.'
                say
                say 'Enter a "F" for the Fermentaion Fill-in-the-Blank quiz.'
                say
                say 'Enter a "M" for the Miscellaneous Fill-in-the-Blank quiz.'
                say
                say 'Enter a "Y" for the Yeast name for each substyle.'
                say
                say 'Enter a "T" for the Troubleshooting quiz, in which styles are these off flavors allowed.'
                say
                say 'Enter a "S" for the Substyle quiz, matching subcategory numbers with names.'
                say
                say 'Enter a "G" for the Groups quiz, matching subcategory with group number (1-9).'
                say
                say 'Enter a "D" for the True / False quiz about DMS and Diacetyl being appropriate in low levels.'
                say
                response1=ask
                end PickFile
        if response1.upper = "C" then fileName='Commercial_examples.txt'
        if response1.upper = "M" then fileName='flashcards.txt'
        if response1.upper = "F" then fileName='fermentation.txt'
        if response1.upper = "Y" then fileName='Yeast for substyle.txt'
        if response1.upper = "T" then fileName='TroubleShooting.txt'
        if response1.upper = "S" then fileName='Categories.txt'
        if response1.upper = "G" then fileName='groups.txt'
        if response1.upper = "D" then fileName='DMS_Diacetyl.txt'
               
                say 'Enter a "Y" to prompted in random order. Otherwise the input will read sequentially.'
                say
                response1=ask
                if response1.upper = "Y" then randomize = 1

        LoadTable(fileName)
end
               
    Retry(sub_i, randomize)
                       
/* Open and check the files       */
Method LoadTable(aFileName = Rexx) SIGNALS IOException static  --, FileNotFoundException
        if Debug_Level > 3 then trace results
        reset()
        fileName = aFileName
        say 'Processing infile.' aFileName
-- method readTextFromJar( s=String )
        thisLine = String
        do
                is = InputStream
                is = getClass().getResourceAsStream(aFileName)
                br = BufferedReader
                br = BufferedReader(InputStreamReader(is))
                loop while (br.readLine() \== null)
                        thisLine = br.readLine()
                        System.out.println(thisLine)
                end
                catch e=Exception
                        e.printStackTrace()
        end
--                is = getClass().getResourceAsStream(aFilename)
--                isr = InputStreamReader.InputStreamReader(is)
--                bufferIn = BufferedReader(isr)
--                line = bufferIn.readLine()
--                 say line
--        catch Z=IOException  --, X=FileNotFoundException
--                        say '# error opening file' Z.getMessage
--                         say '# File not found.' X.getMessage
--                return inhandle
--        end
/* The processing loop to load our table from the txt file.               ***/
        loop sub_i = 0
                line = br.readLine                                 -- get next line as Rexx string
                if line == null then leave sub_i          -- normal end of file
                parse line '"' myanswer '"' myquestion
                question1[sub_i] = myquestion.strip
                answer1[sub_i] = myanswer.strip
                ans_done[sub_i] = 0
        end sub_i
        sub_i = sub_i - 1
        say 'Total questions to be asked =' sub_i     "-->Press enter to proceed..."
--  response1=ask
--        if response1 ==  "Q" | response1 == "q" | response1 == "X" | response1 == "x" then exit

/* The main processing loop.                     ***/
method Retry(TotalLines = int, Rand1 = boolean)
         if Debug_Level > 1 then trace results
         search_cnt = 0
        bool = Rand1
        say TotalLines "   <-- total lines."
        If  Rand1 then         I = GetRand(TotalLines)
                else        
                if I < TotalLines then I = I + 1
                        else I = 0
       
        loop label findundone while ans_done[I] == 1
                search_cnt = search_cnt + 1
                if search_cnt > TotalLines then do
                        JOptionPane.showMessageDialog(null, -
                                "Congratulations! Complete. Score will be saved")
                        Flashcard.WriteAndLeave(Flashcard.DaScore)
                 end
                 I = I + 1
                if I > TotalLines then I = 0
        end findundone
       
        this_question=question1[I]
        this_answer=answer1[I]
        Flashcard(this_question, this_answer)
--        


Kenneth Klein



Jason Martin <[hidden email]>
Sent by: [hidden email]

05/09/2012 03:31 PM

Please respond to
IBM Netrexx <[hidden email]>

To
IBM Netrexx <[hidden email]>
cc
Subject
Re: [Ibm-netrexx] question: how to load a text file that is in the same .jar file.





Kenneth try :

    method readTextFromJar( s=String )
        thisLine = String

        do
            is = InputStream
            is = getClass().

getResourceAsStream(s)
            br = BufferedReader
            br = BufferedReader(InputStreamReader(is))
            loop while (thisLine = br.readLine()) \== null
                System.out.println(thisLine)

            end
         catch  e=Exception
            e.printStackTrace()
        end

Some times,  the trick with snippets is to keep a empty main.java around so you can paste it in and run java2nrx



On Wed, May 9, 2012 at 2:11 PM, <kenneth.klein@...> wrote:

I found this snippet that seems to apply to what I am trying to do"


public void 
readTextFromJar(String s) {
    
String thisLine;
    
try {
      
InputStream is = getClass().getResourceAsStream(s);
      
BufferedReader br = new BufferedReader
         
(new InputStreamReader(is));
      
while ((thisLine = br.readLine()) != null) {  
         
System.out.println(thisLine);
         
}
      
}
    
catch (Exception e) {
      
e.printStackTrace();
      
}
  
}
}


Now, how to I translate this into netrexx?




Kenneth Klein



René Jansen <rvjansen@...>
Sent by:
[hidden email]

05/09/2012 12:55 PM


Please respond to
IBM Netrexx <
[hidden email]>

To
IBM Netrexx <[hidden email]>
cc
Subject
Re: [Ibm-netrexx] question: how to load a text file that is in the        same .jar file.







If you run from a jar, your relative classpath is from the start of the jar directory. Google for loadResourceAsStream for the solution.

best regards,

René.


On 9 mei 2012, at 12:46,
kenneth.klein@... wrote:


If I run my simple netrexx program in a subdirectory where the class files and the .txt files reside, all runs well. If I jar the class files and the .txt files and copy into a new subdirectory, then I can't read the .txt files. I don't want to update them in the jar file, just read into a table.

This works:


Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
       if Debug_Level > 3 then trace results

       reset()

       fileName = aFileName

       say 'Processing infile.' aFileName

       do
               bufferIn=BufferedReader(FileReader(afileName))

               
 
               catch Z=IOException  --, X=FileNotFoundException
                       say '# error opening file' Z.getMessage

--                         say '# File not found.' X.getMessage

--                return inhandle

       end

/* The processing loop to load our table from the txt file.               ***/

       loop sub_i = 0
               line = bufferIn.readLine                                 -- get next line as Rexx string

               if line == null then leave sub_i          -- normal end of file

               parse line '"' myanswer '"' myquestion

               question1[sub_i] = myquestion.strip

               answer1[sub_i] = myanswer.strip

               ans_done[sub_i] = 0

       end sub_i


Something like this should work (but I'm missing something):


Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
       if Debug_Level > 3 then trace results

       reset()

       fileName = aFileName

       say 'Processing infile.' aFileName

       do
           MY_jarFile = JarFile("frontend2.jar");

           entry = MY_jarFile.getJarEntry(aFileName);

           bufferIn = InputStreamReader(MY_jarFile.getInputStream(entry) );

--                bufferIn=BufferedReader(FileReader(input))

               
 
               catch Z=IOException  --, X=FileNotFoundException
                       say '# error opening file' Z.getMessage

--                         say '# File not found.' X.getMessage

--                return inhandle

       end



Kenneth Klein

_______________________________________________
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/


_______________________________________________
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: Popularity of NetRexx

Tom Maynard
In reply to this post by Jason Martin
On 05/09/2012 02:04 PM, Jason Martin wrote:
> Here is what I suggest for the benefit of NetRexx.
>
> All the pieces are there.

It sounds like you're proposing the HTML5/CSS/Javascript path.  [An
example app built with Eclipse: http://www.youtube.com/watch?v=uVqp1zcMfbE]

That was part of my recent expression of desire for a Javascript backend
for the NetRexx compiler: one language that does everything, is cross
platform, and dead easy to use.  Such a thing is beyond my capabilities,
and I admit that freely.

Perhaps in my next lifetime.

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: Popularity of NetRexx

Tom Maynard
In reply to this post by Fernando Cassia-2
On 05/09/2012 02:23 PM, Fernando Cassia wrote:
>   a cross-platform Java app
> that docks to systray and lets you mount and unmount cloud storage
> services with ease.

An interesting proposition, Fernando.  Indeed, I have a handful of apps
installed locally -- one per "cloud" -- and a single interface to all
would be quite nice.  I wonder how open the various "vendors" APIs are?

You'd still need a mobile version, though: that's one of my primary uses
for cloud storage -- sharing/accessing information no matter which
device I happen to use (PC, laptop, tablet, phone, ...).

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: Popularity of NetRexx

Jason Martin
In reply to this post by Tom Maynard
Apache Pivot seems to do a pretty good jobs without the HTML stuff if you can run the Java Plugin.

You can code so that it runs like a Applet in the browser or on the Desktop without one.

I hate having to learn 45 new technologies to do something simple.

I am not saying that the answer. It just looks good to me.

I use electricity in a little sin wave and all it has done so far is produce 0 and 1.

People just keep piling on those 0's and 1's.





On Wed, May 9, 2012 at 4:10 PM, Tom Maynard <[hidden email]> wrote:
On 05/09/2012 02:04 PM, Jason Martin wrote:
Here is what I suggest for the benefit of NetRexx.

All the pieces are there.

It sounds like you're proposing the HTML5/CSS/Javascript path.  [An example app built with Eclipse: http://www.youtube.com/watch?v=uVqp1zcMfbE]

That was part of my recent expression of desire for a Javascript backend for the NetRexx compiler: one language that does everything, is cross platform, and dead easy to use.  Such a thing is beyond my capabilities, and I admit that freely.

Perhaps in my next lifetime.


Tom.

_______________________________________________
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: Popularity of NetRexx

ThSITC
In reply to this post by Tom Maynard
Hello Tom, and all,

might I do suggest that you read thru the short version of my White Paper
on LOGOS (project Logos on www.kenai.com).

We had meeting there at he Vienna ZIT, and also the FFG, to get some
Financial supplement for the ucoming products, as there are:

- Logos4Kids (tm) : Teaching young turks, serbian, croatian, slowakien,
hungarien, polish, etc childs (and their GrandMa's) imigrating to Vienna
*German* (and vice versa). Logos4Kids shall be available as an Android
Game (Priced 1 time 20 Euro/Dollar, dependent where you download it).

- Logos4You (tm). same for adults, both as a computer game (70 €/$) for
a base of 3.000 terms (Natural Language terms, of course, *Not* netrexx
terms)

- and finally MobileTalk (tm), which is the final goal.

All of those will be developped in Netrexx, with some new verbs becoming
introduced, on demand, to ease ad support game programming in Netrexx.

The source of Logos will be be sourced, the Dictionaries (especially
the application specific ones, like Medical, Pharmaceutic, etc) will be
properly priced, and downloaded from the Net on demand when special
words, terms, or phrases are used).

Wanted & needed:

- co-designers
- co-workers (programmers)
- marketing assistance
- a proper Investor (530.000,-- Euro) for the MobileTalk ProtoType fo 5
arbitrary languages.

Please spread to the proper parties which might be interested, espacially
to act as the Investor to finance this mega-game ;-)

After my current pending release, and after an Investor has been found,
actual programming will start 1.1.2013, based on some pre-work I did
(reading the Internet) :-)

Kind regards from nice Vienna Austria,
Massa Thomas ;-)
========================================================

Am 09.05.2012 19:27, schrieb Tom Maynard:

> On 05/09/2012 09:16 AM, René Jansen wrote:
>> what kind of demo's and benchmarks we should produce, while lacking
>> the time to do our own Angry Kings.
>
> Um, how about "Angry Hackers" -- where a storm of zombie-like,
> mainframe dinosaurs attack a building that looks surprisingly like
> Oracle HQ? The goal would be to "rescue" the JVM and destroy all
> traces of Java along the way (with "achievements" for knocking out
> competing alternative JVM languages).
>
> Of course, I'm kidding. I actually bear Java no ill will (Oracle
> itself may be another story), although upon my first exposure when it
> first appeared I did think that it was a "COBOL version of C." Lots
> and lots of ceremony.
>
> I will, however, give some thought to what might be a killer app for
> NetRexx ... most likely on Android, where there is a lot of exposure.
> I love to cogitate (my wife calls it something else entirely).
>
> Tom.
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider (Founder of www.thsitc.com) 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: question: how to load a text file that is in the same .jar file.

ThSITC
In reply to this post by kenner
Hello Kenneth, I've been bored by the same error a lot in my inital tries with
Rexx2Nrx, RexxForm, PP, DB-123, etc.

The major trick you have to use is to make an (inner) sub-class, which is
fully object oriented, but call (reference) the constructor (giving you a object)
from the main class only.

When interested in this, give me a private mail, and Ican send you a sampleof the technique I did use as a reolution (with my very limited Object Oriented knowledges at those time ...)

Kind regards,
Thomas.
=========================================================
Am 09.05.2012 22:09, schrieb [hidden email]:

Thanks, Jason

Good tip on java2nrx, I'll work on that.

I'm a whole lot closer, but this concept still drives me up the wall:

Error: Cannot refer to a non-static method directly from a static instruction

Here's more of my code. Maybe you can see thru my inability to understand static and non-static methods and instructions.

                options verbose4 trace1 logo
import javax.swing.
import javax.swing.text
import java.awt.GridBagLayout
import java.awt.Graphics
import java.awt.GridBagConstraints
import java.awt.event.ActionListener
import java.awt.event.ActionEvent
import java.text.
import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;
import netrexx.lang.Rexx
import java.io.
 
class Retry
        properties inheritable static

                question1 = Rexx[500]
                answer1 = Rexx[500]
                ans_done = int[500]
                sub_i = int 500
                search_cnt = int 0
                I = int -1
                response1 = Rexx
                bool = boolean 1
                randomize = boolean 0
                fileName = Rexx
                textline = Rexx
                DaScore = Rexx
                Start_Time = long
                Debug_Level = int 5
                               
method main(s=String[]) static
        if Debug_Level > 3 then trace results
-- Executed nomally from FrontEnd2, if run standalone these text items are listed        
if question1[0] == null then do
                loop label PickFile Until response1 = "C" | response1 = "F"| -
                                                                        response1 = "G" | response1 = "Y"| -
                                                                        response1 = "T" | response1 = "S"| -
                                                                        response1 = "M" | response1 = "D"
                say
                say 'Enter a "C" for the Commercial Examples exercises.'
                say
                say 'Enter a "F" for the Fermentaion Fill-in-the-Blank quiz.'
                say
                say 'Enter a "M" for the Miscellaneous Fill-in-the-Blank quiz.'
                say
                say 'Enter a "Y" for the Yeast name for each substyle.'
                say
                say 'Enter a "T" for the Troubleshooting quiz, in which styles are these off flavors allowed.'
                say
                say 'Enter a "S" for the Substyle quiz, matching subcategory numbers with names.'
                say
                say 'Enter a "G" for the Groups quiz, matching subcategory with group number (1-9).'
                say
                say 'Enter a "D" for the True / False quiz about DMS and Diacetyl being appropriate in low levels.'
                say
                response1=ask
                end PickFile
        if response1.upper = "C" then fileName='Commercial_examples.txt'
        if response1.upper = "M" then fileName='flashcards.txt'
        if response1.upper = "F" then fileName='fermentation.txt'
        if response1.upper = "Y" then fileName='Yeast for substyle.txt'
        if response1.upper = "T" then fileName='TroubleShooting.txt'
        if response1.upper = "S" then fileName='Categories.txt'
        if response1.upper = "G" then fileName='groups.txt'
        if response1.upper = "D" then fileName='DMS_Diacetyl.txt'
               
                say 'Enter a "Y" to prompted in random order. Otherwise the input will read sequentially.'
                say
                response1=ask
                if response1.upper = "Y" then randomize = 1

        LoadTable(fileName)
end
               
    Retry(sub_i, randomize)
                       
/* Open and check the files       */
Method LoadTable(aFileName = Rexx) SIGNALS IOException static  --, FileNotFoundException
        if Debug_Level > 3 then trace results
        reset()
        fileName = aFileName
        say 'Processing infile.' aFileName
-- method readTextFromJar( s=String )
        thisLine = String
        do
                is = InputStream
                is = getClass().getResourceAsStream(aFileName)
                br = BufferedReader
                br = BufferedReader(InputStreamReader(is))
                loop while (br.readLine() \== null)
                        thisLine = br.readLine()
                        System.out.println(thisLine)
                end
                catch e=Exception
                        e.printStackTrace()
        end
--                is = getClass().getResourceAsStream(aFilename)
--                isr = InputStreamReader.InputStreamReader(is)
--                bufferIn = BufferedReader(isr)
--                line = bufferIn.readLine()
--                 say line
--        catch Z=IOException  --, X=FileNotFoundException
--                        say '# error opening file' Z.getMessage
--                         say '# File not found.' X.getMessage
--                return inhandle
--        end
/* The processing loop to load our table from the txt file.               ***/
        loop sub_i = 0
                line = br.readLine                                 -- get next line as Rexx string
                if line == null then leave sub_i          -- normal end of file
                parse line '"' myanswer '"' myquestion
                question1[sub_i] = myquestion.strip
                answer1[sub_i] = myanswer.strip
                ans_done[sub_i] = 0
        end sub_i
        sub_i = sub_i - 1
        say 'Total questions to be asked =' sub_i     "-->Press enter to proceed..."
--  response1=ask
--        if response1 ==  "Q" | response1 == "q" | response1 == "X" | response1 == "x" then exit

/* The main processing loop.                     ***/
method Retry(TotalLines = int, Rand1 = boolean)
         if Debug_Level > 1 then trace results
         search_cnt = 0
        bool = Rand1
        say TotalLines "   <-- total lines."
        If  Rand1 then         I = GetRand(TotalLines)
                else        
                if I < TotalLines then I = I + 1
                        else I = 0
       
        loop label findundone while ans_done[I] == 1
                search_cnt = search_cnt + 1
                if search_cnt > TotalLines then do
                        JOptionPane.showMessageDialog(null, -
                                "Congratulations! Complete. Score will be saved")
                        Flashcard.WriteAndLeave(Flashcard.DaScore)
                 end
                 I = I + 1
                if I > TotalLines then I = 0
        end findundone
       
        this_question=question1[I]
        this_answer=answer1[I]
        Flashcard(this_question, this_answer)
--        


Kenneth Klein



Jason Martin [hidden email]
Sent by: [hidden email]

05/09/2012 03:31 PM

Please respond to
IBM Netrexx [hidden email]

To
IBM Netrexx [hidden email]
cc

Subject
Re: [Ibm-netrexx] question: how to load a text file that is in the same .jar file.







Kenneth try :

    method readTextFromJar( s=String )
        thisLine = String

        do
            is = InputStream
            is = getClass().

getResourceAsStream(s)
            br = BufferedReader
            br = BufferedReader(InputStreamReader(is))
            loop while (thisLine = br.readLine()) \== null
                System.out.println(thisLine)

            end
         catch  e=Exception
            e.printStackTrace()
        end

Some times,  the trick with snippets is to keep a empty main.java around so you can paste it in and run java2nrx



On Wed, May 9, 2012 at 2:11 PM, <[hidden email]> wrote:

I found this snippet that seems to apply to what I am trying to do"


public void 
readTextFromJar(String s) {
    
String thisLine;
    
try {
      
InputStream is = getClass().getResourceAsStream(s);
      
BufferedReader br = new BufferedReader
         
(new InputStreamReader(is));
      
while ((thisLine = br.readLine()) != null) {  
         
System.out.println(thisLine);
         
}
      
}
    
catch (Exception e) {
      
e.printStackTrace();
      
}
  
}
}


Now, how to I translate this into netrexx?




Kenneth Klein



René Jansen <[hidden email]>
Sent by:
[hidden email]

05/09/2012 12:55 PM


Please respond to
IBM Netrexx <
[hidden email]>

To
IBM Netrexx <[hidden email]>
cc

Subject
Re: [Ibm-netrexx] question: how to load a text file that is in the        same .jar file.









If you run from a jar, your relative classpath is from the start of the jar directory. Google for loadResourceAsStream for the solution.

best regards,

René.


On 9 mei 2012, at 12:46,
[hidden email] wrote:


If I run my simple netrexx program in a subdirectory where the class files and the .txt files reside, all runs well. If I jar the class files and the .txt files and copy into a new subdirectory, then I can't read the .txt files. I don't want to update them in the jar file, just read into a table.

This works:


Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
       if Debug_Level > 3 then trace results

       reset()

       fileName = aFileName

       say 'Processing infile.' aFileName

       do
               bufferIn=BufferedReader(FileReader(afileName))

               
 
               catch Z=IOException  --, X=FileNotFoundException
                       say '# error opening file' Z.getMessage

--                         say '# File not found.' X.getMessage

--                return inhandle

       end

/* The processing loop to load our table from the txt file.               ***/

       loop sub_i = 0
               line = bufferIn.readLine                                 -- get next line as Rexx string

               if line == null then leave sub_i          -- normal end of file

               parse line '"' myanswer '"' myquestion

               question1[sub_i] = myquestion.strip

               answer1[sub_i] = myanswer.strip

               ans_done[sub_i] = 0

       end sub_i


Something like this should work (but I'm missing something):


Method LoadTable(aFileName = Rexx) static SIGNALS IOException  --, FileNotFoundException
       if Debug_Level > 3 then trace results

       reset()

       fileName = aFileName

       say 'Processing infile.' aFileName

       do
           MY_jarFile = JarFile("frontend2.jar");

           entry = MY_jarFile.getJarEntry(aFileName);

           bufferIn = InputStreamReader(MY_jarFile.getInputStream(entry) );

--                bufferIn=BufferedReader(FileReader(input))

               
 
               catch Z=IOException  --, X=FileNotFoundException
                       say '# error opening file' Z.getMessage

--                         say '# File not found.' X.getMessage

--                return inhandle

       end



Kenneth Klein

_______________________________________________
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/


_______________________________________________
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 (Founder of www.thsitc.com) 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
12