 home
home
Environmental setting to execute Java Application on Mac
Installation of Open JDK
- Visit the Open JDK site, and
  download it. 
- Decompress the file in a suitable directory,
 $ tar xvzf openjdk-12.0.1_osx-x64_bin.tar.gz
- Move the directory to /Library/Java/JavaVirtualMachines/,
 $ sudo mv jdk-12.0.1 /Library/Java/JavaVirtualMachines/
- Execute the following command,
 $ /usr/libexec/java_home  -V
- Export the following environment variable in .bashrc,
 export JAVA_HOME=$(/usr/libexec/java_home)
- Renew the shell
 $ source ~/.bash_profile
Installation of OpenJFX
- Visit
  the OpenJFX site,
  and download it.
- Decompress the zip file in a suitable directory.
- Move the directory to /Library/Java/JavaVirtualMachines/,
 $ sudo mv javafx-sdk-12.0.1 /Library/Java/JavaVirtualMachines/
- Set the path in .bashrc as follows,
 $ export PATH_TO_FX=/Library/Java/JavaVirtualMachines/javafx-sdk-12.0.1/lib
Execution of jar file
- Execute the following command in your terminal,
 $ java -jar --module-path $PATH_TO_FX --add-modules=javafx.controls,javafx.swing JavaFXAnalysisTools.jar
Kazushi Neichi
Department of Business Administration, Tohoku Gakuin University