Skip to main content

The PreTeXt Guide

Section J.1 Java

The jing and trang schema tools (Appendix E) require the Java Development Kit (JDK). These instructions come from Mitch Keller and Jane Butterfield on 2019-07-23. You may need to change some version numbers over time.
List J.1.1. Install Java on MacOS
  1. From jdk.java.net/12/ get an open source JDK. In other words, not the proprietary version from Oracle.
  2. Unzip the file you download until you have a directory called jdk-12.0.1.jdk. Put that directory somewhere useful. We will pretend that you put it in your home directory and that your user is called jane, which means that the directory is now at /Users/jane/jdk-12.0.1.jdk.
  3. In a Terminal, run
    export JAVA_HOME=/Users/jane/jdk-12.0.2.jdk/Contents/Home
    adjusted appropriately. A good check is to get this same directory back from the command
    echo $(/usr/libexec/java_home)
    
  4. If you are doing this to install jing and trang, then, in the same Terminal window, cd into the jing-trang directory and run ./ant.