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
[~fmiao] [~kkolipaka] [~msamah] can one of you take a look?
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.
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/340
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