Adding JDK Path in Mac OS X, Linux, or Windows

Document created by Dave Murphy Employee on Jul 20, 2017
Version 1Show Document
  • View in full screen mode

In some cases where the Java Development Kit (JDK) is not in the path on the client machine, the MakeAppTouchTestable utility will fail with this error indicating that the JDK path must be set. Use the following Operating System-specific instructions to do so.

Setting the JDK Path on Mac OS X or Linux for Your User

  1. Login and open a Terminal or command line window
  2. Open the ~/.bash_profile using vi or another command-line editor such as Pico. For example enter vi ~/.bash_profile.
  3. Set your PATH to include the JDK sub-folder named java. For example: export PATH=$PATH:/usr/java/jdk1.6.0_10/bin
  4. Save the changes and either logout and then back in, or, to active the new settings enter source ~/.bash_profile

Setting the JDK Path on Windows

  1. First, determine the location of your JDK bin. Typically, this will be C:\Program Files\Java\bin followed by the JDK directory but may be located elsewhere. Specify the bin directory.
  2. Once you have the JDK installation path, right-click My Computer and select Properties from the context menu.

Note: Getting to the System Properties box varies slightly between Windows versions. In whichever version you're using, right-click the "Computer" or "My Computer" icon in Explorer, and then click System Protection to open the System Properties box.

  1. In the System Properties box, select the Advanced tab.
  2. In the Advanced tab, click the Environment Variables button.
  3. Locate the "Path" row under System Variables and click Edit.
  4. In the Edit System Variable box, ensuring that a semi-colon preserves the last path, append the installation path for the Java Development Kit bin. For example, C:\Program Files\Java\jdk1.6.0_10\bin. Close it with a semi-colon.
  5. Click OK.
  6. Once you're back in the System Properties, Advanced tab, click Apply Changes.

Attachments

    Outcomes