Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How do I fix the "JDK version 'javac' is not recognized..." error?

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?

— asked July 23rd 2010 by Andreas Reif
  • android
  • error
  • javac
  • jdk
  • kitchen
  • sink
0 Comments

7 Answers

  • 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

    Works!!!

    — answered February 7th 2012 by SAJJAN SARKAR
    permalink
    4 Comments
    • Great!!!! Resolve my problem!

      — commented August 28th 2012 by Carlos Eduardo Cabral
    • This resolve my problem!!!

      — commented September 14th 2012 by Mikhail Gerasimov
    • I done this but its not working.. please suggest me what would be the next step

      — commented April 11th 2013 by Bhagyashri Jangam
    • Hi Bhagyashi, 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: C:\Program Files\Java\jdk1.6.0_23\bin I hope that this will solve all problems. Good luck, Piet

      — commented April 11th 2013 by Piet Kaldewaij
  • Hi Dustin,
    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:
    C:\Program Files\Java\jdk1.6.0_23\bin
    I hope that this will solve all problems.
    Good luck, Piet

    — answered October 16th 2011 by Piet Kaldewaij
    permalink
    0 Comments
  • F Java

    — answered February 27th 2013 by S B
    permalink
    0 Comments
  • set on system varables
    Variable_name :JAVA_HOME
    Variable_value :C:\Program Files\Java\jdk1.6.0_43\bin;
    then edit PATH varable name with %JAVA_HOME%\Bin it will definitely work.

    — answered April 4th 2013 by Ashutosh Dwivedi
    permalink
    2 Comments
    • Resolved my problem

      — commented April 4th 2013 by Ashutosh Dwivedi
    • Great !!!! it's working .

      — commented April 4th 2013 by Mayank Bhatnagar
  • 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.

    — answered July 23rd 2010 by Kevin Whinnery
    permalink
    0 Comments
  • I checked, and it seems I have both installed.
    I got it fixed, anyway. Thanks for the help!

    — answered July 23rd 2010 by Andreas Reif
    permalink
    3 Comments
    • I am having the same problem. How did you fix this?

      — commented July 4th 2011 by Michael Wildermuth
    • How did you fix this?

      — commented October 13th 2011 by Dustin Trainer
    • Hi Dustin,

      see my answer below,

      greetings, Piet Kaldewaij

      — commented October 17th 2011 by Piet Kaldewaij
  • Hi
    ok for windows but on Linux? when i do javac -version in my term is ok but no in studio

    — answered December 2nd 2011 by Totoui TUTU
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.