Would you like to contribute to the Titanium docs? To get started, sign up for an account on the Appcelerator Wiki and sign our CLA.

Skip to end of metadata
Go to start of metadata
Contents

Compatibility and Download

Oracle's Java Development Kit (JDK) is required to be installed in order to work with Titanium.

Icon

Be aware that no other flavors of JDK, such as OpenJDK, currently work with Titanium; only Oracle's will suffice.

Titanium supports the following versions of JDK for each respective Operating System:

Operating System

Min JDK Version

Max JDK Version

Package Arch Version

Download Location

Notes

OS X

6

8 latest revision

64-bit

Official Website

  • On Mac OS X 10.6 (Snow Leopard) and earlier, the JDK is preinstalled.
  • On Mac OS X 10.7 (Lion) and later, the OS should prompt you to install it when needed. 
  • Android Development on OS X systems requires Java 6 runtime to be installed.

Windows

7

8 latest revision

32-bit only (x86 / i586)

Official Website

  • The 32-bit version of the JDK is required regardless of whether Titanium is running on a 32-bit or 64-bit Windows system.
  • Studio offers to install JDK 7 if no JDK is found.

Installation

OS X

Note that the typical filesystem location of this software can be found in the OS X 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.

Windows

Note that the typical filesystem location of this software can be found in the Windows Software Locations section of these guides.

  • Log in under your usual user account, and right-click the Python Windows Installer and select Run as administrator. Enter the Administrator password, if you are prompted for it, and proceed until the first screenshot below.
  • At the Java SE Development Kit - Custom Setup > Install to step, select the Development Tools component and verify that it is in the location suggested in the Windows Software Locations section. If not, correct it accordingly. Proceed to the following screenshot below.
  • Select the Public JRE component and verify that it is in the location suggested in the Windows Software Locations section. If not, correct it accordingly.

  • Wait for the JDK installation to complete. The JRE installation will started automatically.
  • At the Java Setup > Destination Folder step, verify that the Install to path is the same location suggested in the Windows Software Locations section. If not, correct it accordingly.

  • Complete the installation.

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.

Ubuntu

Note that the typical filesystem 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:

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-6-sun as default.

Alternatively, you can download and launch the installation package from Oracle.

Testing the Installation

Run the following commands from the command-line or terminal on any operating system to determine whether JDK has been installed and configured correctly:

You should receive results similar to the following, where both commands are recognized and return the correct version.

  • No labels