Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6020] Appcelerator Studio not recognizing JDK

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionHold
Resolution Date2018-12-12T10:05:59.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio
Labelsjdk
Reporterneerhershtig@gmail.com
AssigneeShak Hossain
Created2018-11-13T18:09:56.000+0000
Updated2018-12-12T10:05:59.000+0000

Description

I am attempting to run a HelloWorld app on an Android emulator, but am getting the following error when trying to run: [ERROR] : JDK (Java Development Kit) not installed. [ERROR] : If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set. [ERROR] : The JDK is required for Titanium and must be manually downloaded and installed from http://appcelerator.com/jdk. [ERROR] Application Installer abnormal process termination. Process exit value was 1 I have set the JAVA_HOME variable correctly in Windows. I have also tried: appc ti config java.home "C:\Program Files (x86)\Java\jdk1.8.0_191\bin" ...which does return: java.home saved ...but the app fails to start with the same error message as before.

Attachments

FileDateSize
android_sdk.png2018-11-15T19:21:40.000+000077880
java_home.png2018-11-20T22:02:51.000+000031591
java.png2018-11-23T22:53:51.000+000034650
path_variable.png2018-11-20T22:03:16.000+000075128

Comments

  1. Sharif AbuDarda 2018-11-13

    Hello, Check in studio/preferences/studio/platform/android. See if Android sdk is configured or not? If not, You can download the Android SDK package in here http://dl.google.com/android/android-sdk_r21.1-windows.zip. Now, put the unzip folder in a root directory and configure the directory in your studio by studio/preference/studio/platforms/android/ Android SDK home. Restart studio. Go to your Android SDK folder/tools/android. This will open the Android SDK manager. Download and install the recommended SDK tools and build tools. Now restart the pc after the installation is done. Now check again in the studio. Android SDK should be configured. Let us know. Thanks.
  2. neerhershtig@gmail.com 2018-11-15

    Attached is a screenshot of studio/preferences/studio/platform/android. I don't think I have an issue with my Android SDK. As my issue states, I am having a problem with the *JDK*. Please see description and environment specs. !android_sdk.png|thumbnail!
  3. Sharif AbuDarda 2018-11-16

    Hello, I see you have JDK 1.8.0_191 installed in your system. Can you try with 1.8.0_131 version? In windows machine sometimes this occurs. 1.8.0_131 has a good reputation with Windows platform. Thanks.
  4. neerhershtig@gmail.com 2018-11-16

    I installed 1.8.0_131, changed my JAVA_HOME directory to reflect the new folder, and got the same error message when trying to run: [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] : JDK (Java Development Kit) not found. [ERROR] : If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set. [ERROR] : The JDK can be downloaded and installed from http://appcelerator.com/jdk.
  5. Sharif AbuDarda 2018-11-17

    Hello, What's your JAVA bit version? For windows, it has to be 32bit. Only 32bit is supported in Windows system with Appcelerator. Can you please send "appc ti setup check" log in here. Thanks.
  6. neerhershtig@gmail.com 2018-11-19

    My java is 32bit. Here is the output of "appc ti setup check": ──────────────────┤ Check Environment ├─────────────────── Node.js √ node installed (v8.9.1) √ npm installed (v5.5.1) Titanium CLI * cli new version v5.2.0 available (currently v5.1.1) Titanium CLI Dependencies √ acs up-to-date (v2.0.11) √ alloy up-to-date (v1.13.2) √ appc-cli-titanium up-to-date (v4.4.17) √ appc-inquirer up-to-date (v0.1.10) √ appc-logger up-to-date (v1.1.27) √ appc-platform-sdk up-to-date (v3.0.3) √ appcd up-to-date (v1.1.3) √ arrow up-to-date (v3.2.5) √ async up-to-date (v1.5.2) √ chalk up-to-date (v1.1.3) √ char-spinner up-to-date (v1.0.1) √ columnify up-to-date (v1.5.4) √ commander up-to-date (v2.9.0) √ debug up-to-date (v2.6.9) √ dtrace-provider up-to-date (v0.8.7) √ ejs up-to-date (v2.6.1) √ fields up-to-date (v0.1.24) √ fs-extra up-to-date (v0.26.7) √ inquirer up-to-date (v0.11.4) √ ip up-to-date (v1.1.5) √ jsonpath up-to-date (v1.0.0) √ jwt-simple up-to-date (v0.3.1) √ lodash up-to-date (v3.10.1) √ mkdirp up-to-date (v0.5.1) √ node-appc up-to-date (v0.2.48) √ node-forge up-to-date (v0.6.49) √ node-ios-device up-to-date (v1.6.2) √ npm-conf up-to-date (v1.1.3) √ pac-proxy-agent up-to-date (v2.0.2) √ plural up-to-date (v0.2.1) √ progress up-to-date (v1.1.8) √ recursive-readdir up-to-date (v2.2.2) √ request up-to-date (v2.88.0) √ retire up-to-date (v1.6.2) √ semver up-to-date (v5.5.0) √ tar up-to-date (v4.4.6) √ tiapp.xml up-to-date (v0.2.2) √ titanium up-to-date (v5.1.1) √ version-bump-prompt up-to-date (v3.1.2) √ which up-to-date (v1.3.1) √ wrench up-to-date (v1.5.9) Titanium SDK √ latest sdk installed (v7.4.1.GA) × selected sdk selected Titanium SDK "vundefined" is not installed Android Environment ! sdk Android SDK not found ! targets no targets found ! avds no avds found ! ndk Android NDK not found Java Development Kit × jdk JDK not found! Intel® Hardware Accelerated Execution Manager (HAXM) √ compatible ! installed not found; install HAXM to use Android x86 emulator Network √ online - no proxy server configured √ Network connection test √ Java-based connection test Directory Permissions √ home directory √ titanium config directory √ titanium sdk install directory √ temp directory
  7. Sharif AbuDarda 2018-11-19

    Hello, What about "java -version" returns? Is it shows a valid version in there? Do you have multiple JDK installed in your system? What is your Appcelerator studio version?
  8. neerhershtig@gmail.com 2018-11-19

    $ java -version java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) I only have 1 JDK installed on my machine. Appcelerator Studio version is 5.1.1
  9. Sharif AbuDarda 2018-11-20

    Hello, Can you share how you set the environment variable for JAVA _HOME? Can you install the latest SDK 7.5.0.GA?
  10. neerhershtig@gmail.com 2018-11-20

    JAVA_HOME highlighted in blue: !java_home.png|thumbnail! Path variable with Java entry highlighted in blue: !path_variable.png|thumbnail! I installed the latest SDK, and am still receiving the same error when trying to run: [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] : JDK (Java Development Kit) not found. [ERROR] : If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set. [ERROR] : The JDK can be downloaded and installed from http://appcelerator.com/jdk.
  11. Sharif AbuDarda 2018-11-22

    Hello, you said you tried to run "appc ti config java.home "C:\Program Files (x86)\Java\jdk1.8.0_191\bin"" which does not match with the java home image you attached above. Program Files (x86) and Program Files, where exactly is your JAVA directory? Can you check if you have multiple JAVA runtime installed or not? http://kb.mcgill.ca/?portalid=2&articleid=5034#tab:homeTab:crumb:8:artId:5034:src:article Thanks.
  12. neerhershtig@gmail.com 2018-11-23

    Sorry for the confusion. I installed the 32-bit after you said it's needed for Appcelerator to work. I only have one Java runtime installed: !java.png|thumbnail!
  13. Rakhi Mitro 2018-12-06

    Hello, Are you able to get that sorted out?  Please let us know status of this case and if you need further help on it. Thanks

JSON Source