# Java Examples (Running ooRexx Scripts from/with Java)

Hint: if you wish to look at the ooRexx code with syntax highlighting, then you can use the free and open-source editor `"[g]vim"`, which is available for practically all platforms and can be downloaded from its homepage at http://www.vim.org/.

. <directory> (List of this directory)
  Display all of this directory's files and directories.
.. <directory> (List of parent directory)
  Display all of the parent directory's files and directories.
01_commandHandler <directory>
  A Java demonstration program to show, how easy it is to implement Rexx command handlers in Java, configure a Rexx instance and use it to run a Rexx program that takes advantage of the Rexx instance configuration including the pre-registered Rexx command handler.
02_commandHandler850 <directory>
  A Rexx demonstration program to show, how easy it is to create and load a Java implemented Rexx command handler and take advantage of it.
10_commandHandlers <directory>
  A Java demonstration program to show, how easy it is to implement eleven (!) Rexx command handlers in Java, configure a Rexx instance and use it to run a Rexx program that takes advantage of the pre-registered Rexx command handler.
11_commandHandlers850 <directory>
  A Rexx demonstration program to show, how easy it is to create eleven Java implemented Rexx command handlers and take advantage of them.
20_redirectingCommandHandler850 <directory>
  A Rexx demonstration program to show how to add and use a Rexx redirectable command handler implemented in Java, demonstrating reading and writing redirected data, also in binary mode (as byte arrays typical for Java streams).
30_java_starter850 <directory>
  A Java program that configures a Rexx interpreter to use its two Rexx command handlers named ONE (a direct Rexx command handler) and DEUX (a redirecting Rexx command handler) for the Rexx program it runs.
  Please note:This subdirectory contains another subdirectory entitled rexxonly which demonstrates how to use ooRexx instead of Java to achieve the same functionality!

Rony G. Flatscher, 2022-08-29, Wien/Vienna, Austria, Europe