{ "id": "172607", "key": "AC-6020", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2018-12-12T10:05:59.000+0000", "created": "2018-11-13T18:09:56.000+0000", "labels": [ "jdk" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-12-12T10:05:59.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "I am attempting to run a HelloWorld app on an Android emulator, but am getting the following error when trying to run:\r\n\r\n[ERROR] : JDK (Java Development Kit) not installed.\r\n[ERROR] : If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.\r\n[ERROR] : The JDK is required for Titanium and must be manually downloaded and installed from http://appcelerator.com/jdk.\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n\r\nI have set the JAVA_HOME variable correctly in Windows. I have also tried:\r\n\r\nappc ti config java.home \"C:\\Program Files (x86)\\Java\\jdk1.8.0_191\\bin\"\r\n\r\n...which does return:\r\n\r\njava.home saved\r\n\r\n...but the app fails to start with the same error message as before.", "attachment": [ { "id": "65863", "filename": "android_sdk.png", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-15T19:21:40.000+0000", "size": 77880, "mimeType": "image/png" }, { "id": "65880", "filename": "java_home.png", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-20T22:02:51.000+0000", "size": 31591, "mimeType": "image/png" }, { "id": "65900", "filename": "java.png", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-23T22:53:51.000+0000", "size": 34650, "mimeType": "image/png" }, { "id": "65881", "filename": "path_variable.png", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-20T22:03:16.000+0000", "size": 75128, "mimeType": "image/png" } ], "flagged": false, "summary": "Appcelerator Studio not recognizing JDK", "creator": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Output of appc info:\r\n----------------------------------\r\n\r\nOperating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.17134\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 7.9GB\r\n\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.13\r\n Core Package = 7.0.7\r\n\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\n node-appc Version = 0.2.44\r\n\r\nTitanium SDKs\r\n 7.4.1.GA\r\n Version = 7.4.1\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\7.4.1.GA\r\n Platforms = android, windows\r\n git Hash = f47cf79a83\r\n git Timestamp = 10/8/2018 17:42\r\n node-appc Version = 0.2.45\r\n\r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\n Not installed\r\n\r\n{color:red}Java Development Kit\r\n Not found{color}\r\n\r\nGenymotion\r\n Path = not found\r\n Genymotion Executable = not found\r\n Genymotion Player = not found\r\n Home = not found\r\n\r\nVirtualBox\r\n Executable = not found\r\n Version = unknown\r\n\r\nAndroid SDK\r\n Android Executable = not found\r\n ADB Executable = C:\\Users\\neerh\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe\r\n SDK Path = C:\\Users\\neerh\\AppData\\Local\\Android\\Sdk\r\n\r\nAndroid NDK\r\n NDK Path = not found\r\n NDK Version = not found\r\n\r\nAndroid Platforms\r\n 1) android-23\r\n Name = Android 6.0\r\n API Level = 23\r\n Revision = 3\r\n Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in\r\n ABIs =\r\n Path = C:\\Users\\neerh\\AppData\\Local\\Android\\Sdk\\platforms\\android-23\r\n 2) android-28\r\n Name = Android 9 (not supported by Titanium SDK 7.4.1.GA, but may work)\r\n API Level = 28\r\n Revision = 1\r\n Skins = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in\r\n ABIs =\r\n Path = C:\\Users\\neerh\\AppData\\Local\\Android\\Sdk\\platforms\\android-28\r\n\r\nAndroid Add-Ons\r\n None\r\n\r\nAndroid Emulators\r\n None\r\n\r\nGenymotion Emulators\r\n None\r\n\r\nConnected Android Devices\r\n None\r\n\r\nMicrosoft (R) Visual Studio\r\n No versions found\r\n\r\nMicrosoft (R) Windows Phone SDK\r\n No versions found\r\n\r\nWindows PowerShell\r\n Enabled = yes\r\n\r\nWindows Phone Emulators\r\n10.0\r\n\r\nWindows Phone Devices\r\n\r\n{color:red}Java Development Kit Issues\r\n × JDK (Java Development Kit) not installed.\r\n If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly\r\n set.\r\n The JDK is required for Titanium and must be manually downloaded and installed from\r\n http://appcelerator.com/jdk.{color}\r\n\r\nAndroid Issues\r\n ! Unable to locate an Android NDK.\r\n Without the NDK, you will not be able to build native Android Titanium modules.\r\n If you have already downloaded and installed the Android NDK, you can tell Titanium where the\r\n Android NDK is located by running 'appc titanium config android.ndkPath /path/to/android-ndk',\r\n otherwise you can install it by running 'appc titanium setup android' or manually downloading\r\n from http://appcelerator.com/android-ndk.\r\n\r\n ! \r\n Android Build Tools 28.0.3 are too new and may or may not work with Titanium.\r\n If you encounter problems, select a supported version with:\r\n appc ti config android.buildTools.selectedVersion ##.##.##\r\n where ##.##.## is a version in that is 27.x\r\n\r\n ! Android API Android 9 (android-28) is too new and may or may not work with Titanium SDK 7.4.1.\r\n The maximum supported Android API level by Titanium SDK 7.4.1 is API level 27.\r\n\r\nWindows Issues\r\n × Unable to find the following required Microsoft.NET assemblies:\r\n \"Microsoft.SmartDevice.Connectivity.Interface\",\r\n \"Microsoft.SmartDevice.MultiTargeting.Connectivity\".\r\n These should be resolved by reinstalling Microsoft Visual Studio.\r\n\r\n × Microsoft Windows Phone SDK not found.\r\n You will be unable to build Windows Phone apps.\r\n You can install it from http://appcelerator.com/windowsphone.\r\n\r\n × Microsoft Visual Studio not found.\r\n You will be unable to build Windows Phone or Windows Store apps.\r\n You can install it from http://appcelerator.com/visualstudio.", "comment": { "comments": [ { "id": "443543", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "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. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-11-13T23:22:02.000+0000", "updated": "2018-11-13T23:22:02.000+0000" }, { "id": "443661", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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.\r\n\r\n!android_sdk.png|thumbnail! \r\n\r\n", "updateAuthor": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-15T19:21:43.000+0000", "updated": "2018-11-15T19:22:36.000+0000" }, { "id": "443669", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "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.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-11-16T01:17:52.000+0000", "updated": "2018-11-16T01:17:52.000+0000" }, { "id": "443707", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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:\r\n\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n[ERROR] : JDK (Java Development Kit) not found.\r\n[ERROR] : If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.\r\n[ERROR] : The JDK can be downloaded and installed from http://appcelerator.com/jdk.\r\n", "updateAuthor": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-16T19:31:15.000+0000", "updated": "2018-11-16T19:31:15.000+0000" }, { "id": "443724", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "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.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-11-17T22:55:02.000+0000", "updated": "2018-11-17T22:55:02.000+0000" }, { "id": "443753", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "My java is 32bit. Here is the output of \"appc ti setup check\":\r\n\r\n\r\n──────────────────┤ Check Environment ├───────────────────\r\n\r\nNode.js\r\n √ node installed (v8.9.1)\r\n √ npm installed (v5.5.1)\r\n\r\nTitanium CLI\r\n * cli new version v5.2.0 available (currently v5.1.1)\r\n\r\nTitanium CLI Dependencies\r\n √ acs up-to-date (v2.0.11)\r\n √ alloy up-to-date (v1.13.2)\r\n √ appc-cli-titanium up-to-date (v4.4.17)\r\n √ appc-inquirer up-to-date (v0.1.10)\r\n √ appc-logger up-to-date (v1.1.27)\r\n √ appc-platform-sdk up-to-date (v3.0.3)\r\n √ appcd up-to-date (v1.1.3)\r\n √ arrow up-to-date (v3.2.5)\r\n √ async up-to-date (v1.5.2)\r\n √ chalk up-to-date (v1.1.3)\r\n √ char-spinner up-to-date (v1.0.1)\r\n √ columnify up-to-date (v1.5.4)\r\n √ commander up-to-date (v2.9.0)\r\n √ debug up-to-date (v2.6.9)\r\n √ dtrace-provider up-to-date (v0.8.7)\r\n √ ejs up-to-date (v2.6.1)\r\n √ fields up-to-date (v0.1.24)\r\n √ fs-extra up-to-date (v0.26.7)\r\n √ inquirer up-to-date (v0.11.4)\r\n √ ip up-to-date (v1.1.5)\r\n √ jsonpath up-to-date (v1.0.0)\r\n √ jwt-simple up-to-date (v0.3.1)\r\n √ lodash up-to-date (v3.10.1)\r\n √ mkdirp up-to-date (v0.5.1)\r\n √ node-appc up-to-date (v0.2.48)\r\n √ node-forge up-to-date (v0.6.49)\r\n √ node-ios-device up-to-date (v1.6.2)\r\n √ npm-conf up-to-date (v1.1.3)\r\n √ pac-proxy-agent up-to-date (v2.0.2)\r\n √ plural up-to-date (v0.2.1)\r\n √ progress up-to-date (v1.1.8)\r\n √ recursive-readdir up-to-date (v2.2.2)\r\n √ request up-to-date (v2.88.0)\r\n √ retire up-to-date (v1.6.2)\r\n √ semver up-to-date (v5.5.0)\r\n √ tar up-to-date (v4.4.6)\r\n √ tiapp.xml up-to-date (v0.2.2)\r\n √ titanium up-to-date (v5.1.1)\r\n √ version-bump-prompt up-to-date (v3.1.2)\r\n √ which up-to-date (v1.3.1)\r\n √ wrench up-to-date (v1.5.9)\r\n\r\nTitanium SDK\r\n √ latest sdk installed (v7.4.1.GA)\r\n × selected sdk selected Titanium SDK \"vundefined\" is not installed\r\n\r\nAndroid Environment\r\n ! sdk Android SDK not found\r\n ! targets no targets found\r\n ! avds no avds found\r\n ! ndk Android NDK not found\r\n\r\nJava Development Kit\r\n × jdk JDK not found!\r\n\r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\n √ compatible\r\n ! installed not found; install HAXM to use Android x86 emulator\r\n\r\nNetwork\r\n √ online\r\n - no proxy server configured\r\n √ Network connection test\r\n √ Java-based connection test\r\n\r\nDirectory Permissions\r\n √ home directory\r\n √ titanium config directory\r\n √ titanium sdk install directory\r\n √ temp directory\r\n", "updateAuthor": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-19T20:11:48.000+0000", "updated": "2018-11-19T20:11:48.000+0000" }, { "id": "443757", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "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?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-11-19T22:23:59.000+0000", "updated": "2018-11-19T22:23:59.000+0000" }, { "id": "443759", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "$ java -version\r\njava version \"1.8.0_131\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_131-b11)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)\r\n\r\nI only have 1 JDK installed on my machine. Appcelerator Studio version is 5.1.1", "updateAuthor": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-19T22:32:11.000+0000", "updated": "2018-11-19T22:32:11.000+0000" }, { "id": "443792", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you share how you set the environment variable for JAVA _HOME? Can you install the latest SDK 7.5.0.GA?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-11-20T21:34:07.000+0000", "updated": "2018-11-20T21:34:07.000+0000" }, { "id": "443796", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "JAVA_HOME highlighted in blue:\r\n !java_home.png|thumbnail! \r\n\r\nPath variable with Java entry highlighted in blue:\r\n !path_variable.png|thumbnail! \r\n\r\nI installed the latest SDK, and am still receiving the same error when trying to run:\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n[ERROR] : JDK (Java Development Kit) not found.\r\n[ERROR] : If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.\r\n[ERROR] : The JDK can be downloaded and installed from http://appcelerator.com/jdk.", "updateAuthor": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-20T22:20:07.000+0000", "updated": "2018-11-20T22:20:07.000+0000" }, { "id": "443855", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "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\r\n\r\nThanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-11-22T22:43:37.000+0000", "updated": "2018-11-22T22:43:37.000+0000" }, { "id": "443866", "author": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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:\r\n !java.png|thumbnail! ", "updateAuthor": { "name": "neerhershtig@gmail.com", "key": "neerhershtig@gmail.com", "displayName": "neerhershtig@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-23T22:53:56.000+0000", "updated": "2018-11-23T22:53:56.000+0000" }, { "id": "444304", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nAre you able to get that sorted out?  Please let us know status of this case and if you need further help on it.\r\n\r\nThanks\r\n", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-12-06T08:23:41.000+0000", "updated": "2018-12-06T08:23:41.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }