Running Lattix Architect from the Command Line on Mac

Running Lattix Architect from the Command Line on Mac#

Lattix Architect comes with command line utilities that can be used to update models, generate reports, etc. These commands are packaged as shell scripts located in the Lattix Architect application. For a default Lattix 8.0 installation, you need to add:

/Applications/Lattix\ Architect\ 2022.2.app/Contents/Java/bin

to your PATH. Please note that the backslashes are used as an “escape” character on the command line, which forces the space character to be included as part of the path.

The GUI can also be run from the command line using lattixarchitect.sh, i.e.

$ /Applications/Lattix\ Architect\ 2022.2.app/Contents/Java/bin/lattixarchitect.sh

Specifying JAVA_HOME#

You may need to specify JAVA_HOME in order to run Lattix from the command line. If you’ve installed Apple’s Java, then it will be in /System/Library/Java/JavaVirtualMachines/, i.e.

$ export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Oracle’s Java is installed in /Library

$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home

Lattix is intended to be used with Java 1.6 (the version shipped by Apple). Only cursory testing has been done with Java 1.7.