-- This code,
class PingIt method PingIt() signals IOException child = Runtime.getRuntime().exec("ping 127.0.0.1"); in = BufferedReader(InputStreamReader(child.getInputStream())) line = '' loop while line \= null say line line = in.readline() end child.waitFor() method main(args=String[]) static PingIt() -- gives this result: C:\Program Files\Java\jdk1.6.0_18\bin\javaw.exe -Xms16M -cp .;C:\Documents and Settings\BOB HAMILTON\.jedit\jars\NetRexxC.jar;C:\Program Files\Java\jdk1.6.0_18\\lib\tools.jar;C:\Program Files\jEdit\jedit.jar COM.ibm.netrexx.process.NetRexxC C:\NetRexx_Java\Doodles\PingIt.nrx NetRexx portable processor, version 2.05 Copyright (c) IBM Corporation, 2005. All rights reserved. Program PingIt.nrx === class PingIt === constructor PingIt() [C:\NetRexx_Java\Doodles\PingIt.nrx 12 16 8] Error: The method 'readline()' cannot be found in class 'java.io.BufferedReader' or a superclass signals InterruptedException overrides Object() function main(String[]) signals IOException,InterruptedException Compilation of 'PingIt.nrx' failed [one error] => Finished <= _______________________________________________ Ibm-netrexx mailing list [hidden email] |
Bob,
you are not compiling with strictcase, are you? The method is called readLine(). best regards, René
On Wed, Nov 24, 2010 at 7:01 PM, Robert Hamilton <[hidden email]> wrote: -- This code, _______________________________________________ Ibm-netrexx mailing list [hidden email] |
I had checked nostrictcase which miraculously --- only in the java world --- sets 'strictcase' on
Boo on JAva bobh On Wed, Nov 24, 2010 at 2:07 PM, René Jansen <[hidden email]> wrote: Bob, _______________________________________________ Ibm-netrexx mailing list [hidden email] |
Free forum by Nabble | Edit this page |