If you want to run jython scripts from jHepWork without the main editor, just set your CLASSPATH to the libraries located in the "lib" directory. You can find such an example bash script "a_run.sh" in the directory "macros/examples" You can run the example files as: "a_run.sh <file>.py" from the Linux/Unix prompt.
It is however more convenient to use ANThttp://jakarta.apache.org/ant/ "build.xml" to run and compile jython scripts using the command line, since ANT is a multi-platform tool. jHepWork has a special "build.xml" script which allows to run and compile jython macros from the command line without the main editor.
Go to the directory: "macros/cmd", and type "ant". If the ANT is installed, you will see a command-line options to run or compile the scripts. For example, to run "histo1.py" script without the main editor, just use:
bash#: ant run -DM histo1
If you want to compile this script in jar library, do:
bash#: ant jarpy -DM histo1
If you want to compile the standard java source files and create jar library, put all the source files to "src" directory and execute "ant jarjava".
In all such cases, it is assumed that you are working in the "cmd" directory. If you want to work in some other directory, modify the variable "jhepwork" in the build.xml file.