Running Hello World
This example is based on the Hello World Packaging Simple Single Module Packaging Example. The Hello World example causes text to be printed to the console. The packaging example ends up with a reduced runtime image named helloWorldXD.icx.
Development Envirionment
The instructions here are sufficient to launch helloWorldXD.icx from the directory in which the packager created it. For more see Running a packaged image.
In a command terminal, cd to the directory with the reduced runtime image, and then use the appropriate command below. The commands start VA Smalltalk headlessly. To open a command terminal with a conveniently set up environment see “open command terminal” in “Running a packaged image”::VAST Runtime.
For Windows:
esvio -lCON -ihelloWorldXD.icx -ini:abt.ini or
esvio -lxyzzy.txt -ihelloWorldXD.icx -ini:abt.ini
For Linux (UNIX):
esnx -ihelloWorldXD.icx -ini:abt.ini
esnx -ihelloWorldXD.icx -ini:abt.ini > lxyzzy.txt
The second command line example redirects the console output to a file.
Check the console to see if the text was printed.
VAST Runtime
See Running a packaged image for how to get the VAST Runtime.
Copy the reduced runtime image, helloWorldXD.icx, into the root of the VAST Runtime tree.
Copy <server-runtime-root>\newimage\esvio.ini (abtnx.ini for UNIX) to the same directory as the packaged image, helloWorldXD.icx, and rename it helloWorldXD.ini
Open a command terminal, cd to <server-runtime-root>.
Launch the image from the command line.
For Windows: bin\esvio.exe -lCON -ihelloWorldXD.icx
For Linux (UNIX): newimage/abtnx -ihelloWorldXD.icx
Check the console to see if the text was printed.
 
Last modified date: 11/30/2023