Project: titanium
Issue TIMOB-19400: Android: Build fails if Java 1.6 is not installed
h5.Description: 1. On a clean machine setup appcelerator studio. 2. Studio will download java 1.7.0_XX, node js & appc CLI. 3. Login to studio & download android SDK from with in studio. 4. Create an app & run it on android device/emulator. h5.Actual Results: 1. The build fails as it looks for java 1.6 & errors as it can't find it with the errors below: {code} [INFO] Encrypting JavaScript files: /Users/qetester/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/titanium_prep.macos "com.app.test1" "/Users/qetester/Documents/Appcelerator_Studio_Workspace/test1/build/android/assets" "alloy/CFG.js" "app.js" "alloy/backbone.js" "alloy/constants.js" "alloy/controllers/BaseController.js" "alloy/controllers/index.js" "alloy/styles/index.js" "alloy/sync/localStorage.js" "alloy/sync/properties.js" "alloy/sync/sql.js" "alloy/underscore.js" "alloy/widget.js" "alloy.js" "ti.cloud.js" "_app_props_.json" [ERROR] Failed to encrypt JavaScript files [ERROR] No Java runtime present, requesting install. TRACE | titanium exited with exit code 1 ERROR | Error: ti run exited with error code 1 at ChildProcess. (/Users/qetester/.appcelerator/install/4.0.2/package/node_modules/appc-cli-titanium/plugins/run.js:84:66) at ChildProcess.emit (events.js:98:17) at Process.ChildProcess._handle.onexit (child_process.js:820:12) {code} 2. We also get a dialog saying "This application needs java 6" & clicking on more info button on the dialog it takes us to the java 1.6 download page on apple's website. *NOTE* - Attached screenshot for reference. h5.Expected Result: 1. The build should succeed with java 1.7.0_X.
Story points: 21