Thom
Thom

Reputation: 323

appcelerator titanium JAVA_HOME not detected

When I am testing java -version , javac -version im getting a proper version in the cmd output ., but when I run the app from appcelerator I'm getting this below error., JAVA_HOME has been set properly .

[ERROR] Application Installer abnormal process termination. Process exit value was 1

[ERROR] :  JDK (Java Development Kit) not installed.

[ERROR] :  If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.
[ERROR] :  The JDK is required for Titanium and must be manually downloaded and installed from http://appcelerator.com/jdk.

Upvotes: 0

Views: 577

Answers (1)

zforgo
zforgo

Reputation: 3263

Most of all, if you get proper outout for java -version or javac -version it doesn't mean JAVA_HOME environment variable had already set. If your PATH environment variable contains java / javaw / javac binaries, you can run it but JAVA_HOME hadn't set. You should check it with: echo %JAVA_HOME%

Other thing is, Appcelerator requires JDK (Java Development Kit). JRE is not enough. But it seems you have JDK, because javac is not part of JRE edition.

At last look for yourself the right version of JDK and Appcelerator you have downloaded. E.g. both of those are for 64-bit operating systems.

Related issues:
[1] https://jira.appcelerator.org/browse/AC-6020
[2] https://github.com/appcelerator/atom-appcelerator-titanium/issues/129

Upvotes: 2

Related Questions