Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19107

Windows: Encryption fails with 64-bit Java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 4.1.0
    • Component/s: Windows
    • Labels:
    • Environment:

      Windows 8.1
      Appc CLI (NPM): 4.1.0-1
      Appc CLI (Registry): 4.1.0-4
      Ti SDK: 4.1.0.v20150629125430
      jdk1.7.0_80 64-bit

    • Story Points:
      3
    • Sprint:
      2015 Sprint 13 Windows

      Description

      Description

      When building for Windows with 64-bit Java the build fails at the encryption stage. Running the command the CLI uses prints out the error

      [INFO]  Encrypting JavaScript files: C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150629125430\windows\titanium_prep.win32.exe "55769Appcelerator.
      pkgTest" "C:\Users\WINDO_~1\AppData\Local\Temp\pkgTest\Assets" "alloy/CFG.js" "app.js" "alloy/backbone.js" "alloy/constants.js" "alloy/controllers/Bas
      eController.js" "alloy/controllers/index.js" "alloy/styles/index.js" "alloy/sync/localStorage.js" "alloy/sync/properties.js" "alloy/sync/sql.js" "allo
      y/underscore.js" "alloy/widget.js" "alloy.js" "_app_props_.json" "_app_info_.json"
      [ERROR] Failed to encrypt JavaScript files
      [ERROR] Program launch failed. Unable to locate Java VM. Please set JAVA_HOME environment variable.
      

      Steps to reproduce

      1. Make sure a 64-bit Java is set as your JAVA_HOME environment variable
      2. Build a Windows platform app that will use encryption appc run -p windows -T wp-device --build-only

      Actual result

      The build will fail

      Expected result

      The build should pass

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              eharris Ewan Harris
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20056
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code