Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1892

"Missing Java SDK" error when upgrading Titanium Studio (instead of fresh install)


    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: Studio
    • Labels:
    • Environment:

      Windows 7


      I am trying to build a basic Android application using Titanium Studio using the Single Window application template.

      I am borrowing a Windows 7 machine from Russ McMahon which already had Titanium Studio installed some time ago. I updated his Titanium Studio to the latest stable version as of today. (3.1.0.GA I believe) to the point where no more updates are available.

      I installed the latest Android SDK and NDK (20130514 (installed API 17 and 8), NDK r8e) and setup the paths in Titanium Studio Preferences.

      After creating a new Single Window project, I am getting the following error when trying to build for the Android Emulator. (I did create an Emulator image.)

      Titanium Command-Line Interface, CLI version 3.1.0, Titanium SDK version 3.1.0.GA
      [ERROR] :  "Missing Java SDK. Please make sure Java SDK is on your PATH
      Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.
      [ERROR] Application Installer abnormal process termination. Process exit value was 1

      What is particularly strange is when I do a brand new Windows 8 installation in Virtual Box with a fresh Titanium install and the same Android SDK/NDK, I don't get this "Missing Java SDK" error. I was asked to report this bug. (You might need to talk to Russ about details of his machine setup.)

      Russ did confirm his Java is installed and in his path and wanted me to include the below.

      C:\Users\Russ>java --version
      Unrecognized option: --version
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.

      \WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jre7\bin\;C:\Program Files


          Issue Links



              • Assignee:
                dsefton Daniel Sefton
                ewing Eric Wing
              • Watchers:
                2 Start watching this issue


                • Created:

                  Git Integration