EJS ModelingInstalling EJS
The EJS console runs one or more copies of EJS and shows error messages. Easy Java Simulations (EJS) is a Java program that can be run under any operating system that supports a Java Virtual Machine (VM). Because Java is designed to be platform independent, the EJS user interface on Microsoft Windows, Macintosh OS X, Unix, and Linux is almost identical. Do the following to install and run EJS:
You should see the console (see Figure) on your computer monitor. The console automatically creates an instance of EJS which should appear on your display. The EJS console is not part of EJS, but a utility used to launch one or several instances (copies) of EJS and to perform other EJS-related tasks. The console is important because it displays EJS program information and error messages. EJS Installation DirectoryThe EJS installation directory contains the EjsConsole.jar file that is used to run EJS and three subdirectories named bin, doc, and workspace. The bin and doc directories contain EJS program files and should not be modified. The workspace directory is your working directory and contains the following four important subdirectories:
EJS creates new files or uses files already in these subdirectories as you run the models, and it is important that you do not delete, move, or rename these subdirectories. (You can, however, organize the contents of export and source directories at your convenience.) You will find additional subdirectories in your source directory which contain sample simulations. In particular, the Modeling Science directory includes the EJS models that are described in book chapters that are available the OSP ComPADRE website. To understand how EJS uses the installation directories, we encourage you to load, inspect, and run a few examples in Modeling Science directory and examine the files that EJS generates in the output and export directories.
|