So, I downloaded and imported Kitchen Sink, installed the Android SDK, installed Java, and ran the Android emulator(from Titanium). The emulator ran fine, but for some reason I keep getting the "JDK version 'javac' is not recognized as an internal or external command" error.
Anyone know how to fix this?
After an hour, this is what worked for me on windows:
- set JAVA_HOME to c:\jdk (or any path with NO spaces)
- set PATH=(previous values);c:\jdk\bin (no spaces and dont use variable names like %JAVA_HOME\bin%)
- Close Titanium
- Launch Titanium from command prompt with -clean option.
eg: c:\>"C:\Program Files\Appcelerator\Titanium Studio\TitaniumStudio.exe" -clean
You have to make a new user variable: JAVA_HOME, with the value: C:\Program Files\Java\jdk1.6.0_23
And you have to make a system path variable:
I hope that this will solve all problems.
Good luck, Piet
set on system varables
Variable_value :C:\Program Files\Java\jdk1.6.0_43\bin;
then edit PATH varable name with %JAVA_HOME%\Bin it will definitely work.
This could be because you have the JRE and not the JDK installed - I would confirm that you have the JDK installed and that the java and javac commands in the JDK bin directory are on the system path for Titanium Developer.
I checked, and it seems I have both installed.
I got it fixed, anyway. Thanks for the help!
ok for windows but on Linux? when i do javac -version in my term is ok but no in studio