[AC-3275] Titanium Studio and Java 1.7/1.8
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-02-02T16:59:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator CLI, Studio |
Labels | TCSupport |
Reporter | grebulon |
Assignee | Mauro Parra-Miranda |
Created | 2015-02-02T16:42:26.000+0000 |
Updated | 2016-03-08T07:57:41.000+0000 |
Description
Titanium Studio requires Java 1.6 which is obsolete. Java 1.7 will also be obsolete soon, or at least unsupported.
Need to advance the studio and the entire build system to newer version of Java.
Ti Studio supports JDK 8. - http://docs.appcelerator.com/titanium/latest/#!/guide/Prerequisites
This is not true. Titanium Studio doesn't run without java 1.6, at least on OSX. 1. Deleted or move java 1.6 (sudo mv /System/Library/Java/JavaVirtualMachines/1.6.0.jdk /System/Library) 2. Add this to TitaniumStudio.ini: -vm /Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home From some reason it creates a wrong path from JAVA_HOME 3. Start it Result: error message: "To open Titanium Studio you need a Java SE 6 runtime." See: https://www.dropbox.com/s/thv0o1tw74z6zbl/titanium_java_6.gif?dl=0
Moreover, you can build using java 1.7 from command line, using "titanium build -p android..." BUT building from the studio ALWAYS goes to the version 1.6 of the java runtime.
Another thing - the entire android build script targets java 6. See android/build/common.xml and support/module/android/build.xml. All the