Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25429] CLI: Support detection of Java 9

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2018-04-02T23:40:29.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.1.1
ComponentsCLI
Labelsandroid, cli, defect
Reporterjzevin@nbme.org
AssigneeEwan Harris
Created2017-10-21T17:36:10.000+0000
Updated2018-04-04T18:36:24.000+0000

Description

Comments

  1. Sharif AbuDarda 2017-10-21

    Hello, Please run "appc ti setup check" or "appc setup check" in the terminal and send the log in here. Thanks.
  2. jzevin@nbme.org 2017-10-21

       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? 
       
       
  3. Ewan Harris 2017-10-23

    [~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
  4. Ewan Harris 2018-02-23

    PR for node-appc https://github.com/appcelerator/node-appc/pull/127
  5. Christopher Williams 2018-03-09

    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
  6. Ewan Harris 2018-03-12

    [~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
  7. Lokesh Choudhary 2018-03-28

    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
  8. Lokesh Choudhary 2018-03-28

    Found issues while building android app with java 9.0.4. Commented in the master PR.
  9. Lokesh Choudhary 2018-03-28

  10. Lokesh Choudhary 2018-04-02

    FR Passed. PR's merged.
  11. Lokesh Choudhary 2018-04-04

    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

JSON Source