NetRexxJe Version 0.04 (March 2001)
By Satguru P Srivastava (srivastava.satguru@mcleodusa.net)
http://sites.netscape.net/ssatguru
Introduction

The "NetRexxJe" plugin provides a quick and easy way to compile and run your NetRexx or Java programs from within the jEdit environment.

Requirements

The minimum requirements are

Installation

jEdit can install the plugin for you or you can install it manually.

To let jEdit install the plugin

To install it manually
Getting Started

To start the plugin

Hopefully this is all you would need to do to get going.

But if a message box pops up asking you to set some paths or you are having problem later on while using NetrexxJe then read on.

Every time NetRexxJe is started it checks to see if certain paths are set and that they are valid.
If a path is not set it will try to set it by itself.
If a path is set then it will check to see if the path is valid i.e. if it exits.
If it is unable set a path or if it finds that a path is invalid it will pop up a message box warning you of that and will ask you to set it manually.

To set/check/change the paths set by NetRexxJe -


Compiling your Program

To Compile the NetRexx or Java program you are editing press the Compile button.

The compile button is a toggle button and will remain pressed during the compile process. To abort the compile process anytime press the Compile button again.

If the compile process was error free then a class file would be created in the same directory as that of the source file.

Any warning or error messages reported by the compiler will be passed on to the EditBus.
If you have installed the ErrorList Plugin then these messages will be displayed in the ErrorList plugin panel. Clicking a message on the ErrorList panel will highlight the erring phrase in your source code. Holding the mouse over the phrase would pop up a tool tip containing the message.

If the file type of the program is 'java' then the plugin would invoke the java compiler otherwise it would invoke the NetRexx compiler.

If you are compiling a java program you can add/change compile options by typing them in the 'Args/Stdin' text box. For example to compile the java program with the 'verbose' option just type -verbose in the 'Args/Stdin' text box and press the Compile button.

NB: While compiling netrexx program the plugin uses the NetRexx compiler's "compact" option to make it display the messages in particular format. If this option is overridden, using the option keyword in your source program, then the plugin willnot be able to capture the messages.

Creating the Java Program

To Create and see the equivalent Java program press the Java button .

Like the compile button the Java button is also a toggle button and will remain pressed during the whole process. To abort the Java process anytime press the Java button again.

Pressing the Java button also invokes the NetRexx compiler. But this time the compiler merely parses the source file and creates the equivalent java file. It doesnot create the class file.

At the end of the process if there were no errors a java file is created in the same directory as your source file and is also displayed in another edit pane.

By default the file is given the name of your program and an extension of "JAVA.KEEP". This can be overridden to give an extension of "JAVA". To do this go the Global Option dialog box and select the NetRexxJe option "Change file type from JAVA.KEEP to JAVA after the java Processing". Changing file ext to "JAVA" can be helpfull because then you can use other Java Plugins like JBrowse etc to analyse your code.

Error messages are handled in the same manner as the Compile process described above.

Changing Compiler Options

To change the NetRexx compiler options press the Option button.

Pressing the Options button will replace the NetRexx console panel by the compiler option panel. Pressing the Options button again will restore the console panel.

The compiler option panel contains a list of the DEFAULT options used by the compiler. To override an option just go and select it. The selections made are saved across jEdit sessions.

Changing Classpath

You can change the classpath used by the NetRexx & Java compiler by typing in a new classpath in the ClassPath field. The last five ClassPath typed in by you are retained by the plugin across jEdit sessions. To select a previous classpath click the drop down box and pick one from the drop down list. The plugin adds the following paths to what you selected

NB:In windows if you started jEdit using the jar option (eg java -jar jedit.jar) then your system classpath would be just jedit.jar

Running Your Program

To run your NetRexx or Java program press the Run button .

This is a toggle button and will remain pressed during the run. To abort the run anytime press the Run button again.

To pass any arguments to your program type in those arguments in the Args/Stdin field before running the pgm.

Your program will run with the classpath set as described above and with the arguments typed in the Args/Stdin field

If your program reads from the STDIN during it's run ie. if it uses ask or readln etc then you can pass data to it by typing the data into the Args/Stdin field and pressing the ENTER key on the keyboard.

Notes
To Do

These are the additional features that are being considered:

Change log

Version 0.04 (March 2001)

Version 0.03 (March 2001)

Version 0.02 (Nov. 2000)

Version 0.01 (Oct. 2000)

Feedback

Please send any bug reports or feedback to me at the following address
srivastava.satguru@mcleodusa.net

Thanks
Satguru Srivastava