Running DIAL Outside Workbench
DIAL is a Java programming language. The original use for DIAL was running scripts from the command line. This is still an option.
Running the DIAL Interpreter from the command line
The DIAL interpreter assumes the JRE location is included in the Environment Variable, PATH.
Check to see if it is installed and accessible by running java -version from a command prompt.
If the Java SE or OpenJDK Runtime Environment is not in the environment path, add it to the path, or invoke it using the full path. For example, on Windows: "C:\DI_Solution_71\Java\jdk-11.0.1\bin\java.exe"
To run the DIAL interpreter, invoke the Java Runtime Environment with the DIAL Java archive file (dial.jar), the DIAL script file name, and any optional arguments:
java -jar dial.jar <filename>.dial [optional arguments]
To test DIAL, type the following command without specifying a filename:
java -jar dial.jar
Notice that the command was run from the directory where the dial.jar is located, and because no script file was named, the expected usage syntax displays.
To query the version:
java -jar dial.jar -v
To run the local DIAL script named hello:
java -jar dial.jar hello.dial
To run the local DIAL script named alert and to pass an argument:
java -jar dial.jar alert.dial "West Virginia"