[TIMOB-25429] CLI: Support detection of Java 9
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-04-02T23:40:29.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 7.1.1 |
| Components | CLI |
| Labels | android, cli, defect |
| Reporter | jzevin@nbme.org |
| Assignee | Ewan Harris |
| Created | 2017-10-21T17:36:10.000+0000 |
| Updated | 2018-04-04T18:36:24.000+0000 |
Hello, Please run "appc ti setup check" or "appc setup check" in the terminal and send the log in here. Thanks.
Z$ appc ti setup check Appcelerator Command-Line Interface, version 6.2.4 Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. Enter ctrl-c at any time to quit. ──────────────────┤ Check Environment ├─────────────────── Node.js ✓ node installed (v6.9.2) ✓ npm installed (v5.4.1) Titanium CLI ✓ cli bleeding edge (v5.0.14) Titanium CLI Dependencies ✓ acs up-to-date (v2.0.5) ✓ alloy up-to-date (v1.9.14) ✓ appc-cli-titanium up-to-date (v4.3.8) ✓ appc-inquirer up-to-date (v0.1.10) ✓ appc-logger up-to-date (v1.1.27) ✓ appc-platform-sdk up-to-date (v2.3.1) ✓ arrow up-to-date (v2.0.2) ✓ 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.8) ✓ ejs up-to-date (v2.5.7) ✓ 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) ✓ 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.43) ✓ node-forge up-to-date (v0.6.49) ✓ npmconf up-to-date (v2.1.2) ✓ plural up-to-date (v0.2.0) ✓ progress up-to-date (v1.1.8) ✓ recursive-readdir up-to-date (v2.2.1) ✓ request up-to-date (v2.81.0) ✓ semver up-to-date (v5.4.1) ✓ tar up-to-date (v2.2.1) ✓ tar.gz up-to-date (v1.0.5) ✓ tiapp.xml up-to-date (v0.2.2) ✓ titanium up-to-date (v5.0.14) ✓ which up-to-date (v1.3.0) ✓ wrench up-to-date (v1.5.9) Titanium SDK ✓ latest sdk installed (v6.2.2.GA) ✓ selected sdk up-to-date (v6.2.2.GA) Mac OS X Environment ✓ CLI Tools installed iOS Environment ✓ Xcode installed (9.0.1) ✓ iOS SDK installed (11.0) ✓ WWDR cert installed ✓ developer cert installed (1 found) ! distribution cert not found ✓ dev provisioning installed (2 found) ✓ dist provisioning installed (2 found) Android Environment ✓ sdk installed (/Users/jeremyzevin/Library/android-sdk-macosx) ✓ tools installed (v24.4.1) ✕ platform tools unsupported version 23.1.0 ✓ adb installed /Users/jeremyzevin/Library/android-sdk-macosx/platform-tools/adb ✕ android "android" executable not found; please reinstall Android SDK ✓ emulator installed /Users/jeremyzevin/Library/android-sdk-macosx/tools/emulator ✓ mksdcard installed /Users/jeremyzevin/Library/android-sdk-macosx/tools/mksdcard ✓ zipalign installed /Users/jeremyzevin/Library/android-sdk-macosx/build-tools/23.0.1/zipalign ✓ aapt installed /Users/jeremyzevin/Library/android-sdk-macosx/build-tools/23.0.1/aapt ✓ aidl installed /Users/jeremyzevin/Library/android-sdk-macosx/build-tools/23.0.1/aidl ✓ targets installed (1 found) ✓ avds installed (1 found) ! ndk Android NDK not found Java Development Kit ✓ jdk installed (v1.7.0) ✓ java installed /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java ✓ javac installed /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/javac ✓ keytool installed /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/keytool ✓ jarsigner installed /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/jarsigner 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 ──────────────────────┤ Main Menu ├─────────────────────── 1) quick Quick Setup 2) check Check Environment 3) user User Information 4) app New App Defaults 5) network Network Settings 6) cli Titanium CLI Settings 7) sdk Titanium SDK Settings 8) ios iOS Settings 9) android Android Settings 10) exit Exit Where do you want to go?[~jzevin@nbme.org] This isn't actually due to the java.home setting not working but due to some changes made in Java 9 around install locations. I'll move this ticket over to TIMOB and make it an improvement ticket. For now try using Java 1.8
PR for node-appc https://github.com/appcelerator/node-appc/pull/127
Not sure what version this will go out in, so I created PRs for master (7.2.0) and 7_1_X (7.1.1?). Master: https://github.com/appcelerator/titanium_mobile/pull/9924 7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9925
[~cwilliams] Just to confuse things a little jdk detection goes through the titanium cli package. Made a PR to update the node-appc version there https://github.com/appcelerator/titanium/pull/272
Mentioning new PR's here: Master: https://github.com/appcelerator/titanium_mobile/pull/9964 7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9965
Found issues while building android app with java 9.0.4. Commented in the master PR.
FR Passed. PR's merged.
Verified the fix in SDK 7.1.1.v20180403163228 & 7.2.0.v20180403153400, Closing. Studio Ver: 5.1.0 OS Ver: 10.13.2 Xcode Ver: Xcode 9.3 Appc NPM: 4.2.13-2 Appc CLI: 7.0.3-master.27 Daemon Ver: 1.0.1 Ti CLI Ver: 5.1.0 Alloy Ver: 1.11.0 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 9.0.4 Devices: ⇨ google Nexus 6P --- Android 8.0.0 ⇨ google Nexus 5 --- Android 6.0.1