Unity Virtual Reality Projects
上QQ阅读APP看书,第一时间看更新

Installing the Java Development Kit (JDK)

You may already have Java installed on your machine. You can check by opening a terminal window and running the command java-version. If you do not have Java or need to upgrade, follow the steps:

  1. Browse on over to the Java SE Downloads web page at http://www.oracle.com/technetwork/java/javase/downloads/index.html and get it. Look for the JDK button icon, which takes you to the downloads page.
  2. Choose the package for your system. For example, for Windows choose Windows x64. After the file downloads, open it and follow the installation instructions.
  3. Make a note of the installation directory for later reference.
  4. Once installed, open a fresh terminal window and run java -version once more to verify.

Whether you just installed the JDK or it was already there, please make a note of its location on your disk. You will need to tell Unity this information in a later step.

On Windows, the path is probably something like Windows: C:\Program Files\Java\jdk1.8.0_111\bin.

If you can't find it, open Windows Explorer, navigate to the \Program Files folder, look for Java, and drill down until you see its bin directory, as the following screenshot shows:

On OS X, the path is probably something like: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home.

If you can't find it, from a terminal window, run the following command: /usr/libexec/java_home.