Oracle's Java Development Kit (JDK) is required to be installed in order to work with Titanium.
Titanium supports the following versions of JDK for each respective Operating System:
Note that the typical file system location of this software can be found in the mac OS Software Locations section of these guides.
Oracle JDK is installed by default on Mac OS X 10.6 (Snow Leopard) and earlier.
On Mac OS X 10.7 and later, the OS should prompt you to install it. You can also go to Apple Developers and search 'java' to download the installer.
If you are developing Android applications on your OS X system, you need to install the Java 6 runtime. For details, see https://support.apple.com/kb/DL1572.
Note that the typical file system location of this software can be found in the Windows Software Locations section of these guides.
Refer to the Windows Software Locations section to add the path to the Oracle JDK
bin directory to your system's PATH and set the JAVA_HOME variable.
Note that the typical file system location of this software can be found in the Ubuntu Software Locations section of these guides.
See the Software Locations and Environment Variables guide if you need help with setting your system
PATH or other system variables.
To install the Oracle JDK, enable the archive repositories and install the package using the apt-get command:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse" sudo apt-get update sudo apt-get install oracle-java8-installer
If installing the 64-bit JDK, run
sudo apt-get install ia32-libs.
If you have more than one Java installation, run
sudo update-alternatives --config java then select
java-8-oracle as default.
Alternatively, you can download and launch the installation package from Oracle.
Run the following commands from the command-line or terminal on any operating system to determine whether JDK has been installed and configured correctly:
java -version javac -version
You should receive results similar to the following, where both commands are recognized and return the correct version.
Microsoft Windows [Version 10.0.16299.248] (c) 2017 Microsoft Corporation. All rights reserved. C:\Users\appcel>java -version java version "1.8.0_162" Java(TM) SE Runtime Environment (build 1.8.0_162-b12) Java HotSpot(TM) Client VM (build 25.162-b12, mixed mode) C:\Users\appcel>javac -version javac 1.8.0_162