Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-658

Encryption fails on Windows when using 64-bit Java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0
    • Fix Version/s: Release 4.0.1
    • Component/s: Titanium
    • Labels:
    • Environment:

      Windows 8.1
      Titanium SDK build: 4.0.0.RC5
      Appc CLI (NPM): 4.0.0-rc
      Appc CLI (Registry):4.0.0-rc2

    • Severity:
      Blocker
    • Story Points:
      5
    • Sprint:
      2015 Sprint 11 Tooling

      Description

      Description

      When building a project for device on Windows if the machine is using 64-bit Java then the encryption stage will fail with the following

      ERROR] Failed to encrypt JavaScript files
       
      [ERROR] This application cannot be built with the Titanium open source SDK because it is an Appcelerator Platform registered application. Please use t
      he Appcelerator Platform CLI tools or Appcelerator Studio to build this application.
      ERROR  | ti run exited with error code 1
      

      Switching back to 32-bit Java works.

      Titanium CLI works fine with 64-bit Java

      Steps To Reproduce

      1. On a Windows machine check your Java using appc ti info -t jdk
      If you see Program Files (x86) run the following command set JAVA_HOME=<64-bit Path
      2. Create a project using appc new or use an existing one
      3. Build the project using appc run -p android -T device --build-only -l trace

      Actual Result

      The build will fail with the above error

      Expected Result

      The encryption should pass, build should not fail

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Praveen Innamuri (Inactive)
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code