Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19107] Windows: Encryption fails with 64-bit Java

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2015-06-30T20:09:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeGary Mathews
Created2015-06-29T22:20:20.000+0000
Updated2015-07-02T17:46:40.000+0000

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

Comments

  1. Ingo Muschenetz 2015-06-29

    [~fmiao] [~kkolipaka] [~msamah] can one of you take a look?
  2. Chee Kiat Ng 2015-06-30

    Note: Unable to reproduce using 64bit jdk1.7.0_80 and jdk1.7.0_79 using appc 4.0.2. Will investigate further with versions indicated here.
  3. Gary Mathews 2015-06-30

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/340
  4. Ewan Harris 2015-07-02

    Verified using: Windows 8.1 Appc CLI (NPM): 4.1.0-1 Appc CLI (Registry): 4.1.0-4 Ti SDK: 4.1.0.v20150702030940 Appc Studio: 4.1.0.201507010234 Java 1.7 64-bit When building with 64-bit Java set as JAVA_HOME the build does not fail Closing ticket

JSON Source