Titanium Community Questions & Answer Archive

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

ERROR] Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH

OK - I have been struggling to get this working. I am on vista and have downloaded the sun stuff.

I get the above error when I launch kitchen sink. The kitchen sink does display sdk 1.6 at the bottom.

Exactly what do I do now?

%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;C:Program FilesNTRU CryptosystemsNTRU TCG Software Stackbin;C:Program FilesWave Systems CorpDell Preboot ManagerAccess Clientv5;C:Program FilesCommon FilesRoxio SharedDLLShared;C:Program FilesQuickTimeQTSystem;C:Program FilesCommon FilesIntuitQBPOSSDKRuntime

The above is my path

thanks,

======

Your solution worked - thanks

— asked April 29th 2010 by Dana Parks
  • java
2 Comments
  • I'm on XP and I had to change the path to C:\Progra~1\Java\jdk1.6.0_23\bin\; (NOTE - not the complete Program Files). However, after this change "javac" is working from command prompt but now Titanium immediately gives

    "[Error]: RequiredJarsigner not found
    [Error]:Required javac not found
    [Error]:Required java not found"
    I've restarted Titanium after every change. I even added "JAVA_HOME" to the Environment variable. I've it in both java_home and Path.
    Any ideas?

    — commented January 6th 2011 by rajesh ramamoorthy
  • I tried, but it still doesn't work on Window XP. I need help.

    — commented October 26th 2012 by michelle felt

34 Answers

  • Well, I got this one working about an hour ago, so I will try to pass along what little I figured out.

    Right-click on "Computer" on the Vista Desktop. Select "Properties" then "Advanced System Settings" from the left-hand Tasks column. Then when "System Properties" opens, go to the "Advanced" tab and click on "Environment Variables". Go to "System Variables", select "Path" and then click on "Edit…". Put a semi-colon at the end of the path as it stands and then type the exact path to the "bin" directory of the JDK. For me, it was C:Program Files (x86)Javajdk1.6.0_20bin (with appropriate backslashes –for some reason this posting system doesn't display them??). You can tell whether you have succeeded by opening a Command Prompt (a fresh one opened AFTER editing the path) and typing "javac" from the prompt. If it fails, you will see "'javac' is not recognized as an internal or external command" etc., and you should check your editing of the path carefully. If it has succeeded, you will see a long "Usage" statement for javac. An interesting nuisance: if there is a space after the semi-colon and before the C: of the new path item, it doesn't work. Took me a while to guess that that might be a problem… Maybe it was always that way with path variables… I don't think I've edited the path in over ten years!

    — answered April 29th 2010 by Frank Reed
    permalink
    22 Comments
    • This approach also worked for me in Windows 7 (JDK path was a little different, but the rest was "as-is")

      — commented August 5th 2010 by Andrew Mitchell
    • Thank you, worked like a charm! This saved me a lot of time!!

      — commented December 16th 2010 by Jesal Gadhia
    • Environment Variables are explained in the official Titanium Guides

      — commented January 19th 2011 by Paul Dowsett
    • yep that worked for me too, thanks Frank

      — commented January 21st 2011 by andrew hodge
    • i am very new to this; in fact i've never wrote a program in my life. but i had the problem on windows 7 where titanium would tell me it couldn't find java. this fixed it! thank you!

      — commented March 1st 2011 by Matthew Bertram
    • FOR XP this was what worked for me:
      START>CONTROL PANEL>SYSTEM PROPERTIES>ADVANCED (TAB) > Environment Variables (button)

      1. I added a new SYSTEM VARIABLE "JAVA_HOME" (no quotes):
        JAVA_HOME = C:\Progra~1\Java\jdk1.6.0_24\
        (use the tilde to get around the space issue. your version of JDK may vary.)

      2. I added a new USER VARIABLE "PATH" (no quotes):
        PATH = %JAVA_HOME%\bin
        Once this is applied it will look like the same path as JAVA_HOME if you go to edit it will be as you typed it originally.

      — commented April 22nd 2011 by Mark McCartney
    • sorry one more thing - when testing javac via the cmd prompt you need to launch a new window after you make these changes for it to be available to that instance.

      — commented April 22nd 2011 by Mark McCartney
    • And make sure it is the 1.6 version of the JDK. If you are having problems after resetting the path, just restart Titanium. You know, when it is open source we don't have any room to bitch when it doesn't work. Just means we have to fix it. This thing needs lots of fixing. :) I hope it works as well as advertised.

      — commented October 7th 2011 by Mark Walls
    • Best answer! bang on!

      — commented November 19th 2011 by Farghana Hussain
    • works in windows 7 as well! thanks!

      — commented January 29th 2012 by Mendel Broekhuijsen
    • thanks for your post. it worked very well.

      — commented February 22nd 2012 by Rishab Chadha
    • I didn't download the latest version from Titanium! Otherwise, thanks!

      — commented March 12th 2012 by Aleksa Savic
    • This works, but now Titanium can not find my android SDK home in the preferences window.

      — commented May 2nd 2012 by Ryan Gross
    • Awesome worked for me in Windows 7. now on to the next setup problem

      — commented May 13th 2012 by Vijay DeSouza
    • thanks a lot !

      — commented July 31st 2012 by Samavaya Samavaya
    • WOW! Thank you so much for that. Would have taken me a month to figure that out.

      — commented August 23rd 2012 by Vincent Butera
    • %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\QuickTime\QTSystem;C:\Program Files\Java\jdk1.6.0_25bin and Java\jdk1.6.0_25/bin but it doesn't work. what should i do on Window XP.

      — commented October 26th 2012 by michelle felt
    • Thank you very much Frank. You saved my day.

      — commented May 9th 2013 by Arijit Pal
    • This helped and it worked! many thanks!

      — commented July 3rd 2013 by hector torres
    • Thank you a lot it worked :)

      — commented July 21st 2013 by manu barthe
    • it works!!! thank you!!

      — commented June 24th 2014 by Neto Castillo
    • I am working on linux, how I can change java path

      — commented January 8th 2015 by Kimmi Dhingra
  • After an hour, this is what worked for me:

    • 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
    6 Comments
    • I'm on Xp and I did what Reto, down below, suggested. After that, I did a clean start of Titanium from cmdline and it WORKED! Thanks to both Sajjan and Reto.

      — commented February 23rd 2012 by Prasang Chhetri
    • Great, that one worked as well for me. Thanks a lot!

      For those who wonder what to set for:
      c:\jdk

      If you installed the jdk in the default directory and you took version 1.6.0_20 for example the path has to look like:

      C:\Program Files (x86)\Java\jdk1.6.0_20

      — commented March 30th 2012 by Peter Schloensge
    • this is the only solution at the QA that affects my runtime :=
      but it still not working , the consol gives me "
      '[INFO] logfile = D:\test_android\build.log a
      [DEBUG] E:\my road to programing\My road to tatunium\portale SDK installation\Titanium\mobilesdk\win32\1.8.2\android\builder.py emulator test_android E:\Androide workspace D:\test_android com.jivana 4 HVGA
      Traceback (most recent call last):
      File "E:\my road to programing\My road to tatunium\portale SDK installation\Titanium\mobilesdk\win32\1.8.2\android\builder.py", line 2065, in <module>
      s = Builder(project_name,sdk_dir,project_dir,template_dir,app_id)
      File "E:\my road to programing\My road to tatunium\portale SDK installation\Titanium\mobilesdk\win32\1.8.2\android\builder.py", line 244, in init
      android_creator.create(parent_dir, project_dir=self.top_dir, build_time=True)
      File "E:\my road to programing\My road to tatunium\portale SDK installation\Titanium\mobilesdk\win32\1.8.2\android\android.py", line 264, in create
      json_contents = open(os.path.join(template_dir,'dependency.json')).read()
      IOError: [Errno 2] No such file or directory: 'C:\Users\Mustafa Adel ELnagar\AppData\Roaming\Titanium\mobilesdk\win32\1.8.2\android\dependency.json' '

      — commented April 3rd 2012 by Mustafa Elnagar
    • Thanks! worked for me.

      — commented April 12th 2012 by Khawar Shahzad
    • This work perfect for me

      — commented July 15th 2012 by Alejandro Inclan
    • WORKS!!! thanks! -Hector

      — commented July 3rd 2013 by hector torres
  • Thank you Frank!

    Holy cow, what an oddessy this has been to try and get an app set up.

    — answered June 9th 2010 by james duncan
    permalink
    0 Comments
  • Just had the same problem and fixed as per the suggestions above.

    One tip: make sure you restart Titanium after you edit the path.

    — answered May 27th 2010 by Pierre Far
    permalink
    0 Comments
  • I have exactly the same problem, but the jdk is on the path variable .. when i open a command prompt (cmd) and put javac -version into it, it gives me …

    C:\Users\mainuser>javac -version
    javac 1.6.0_21

    This is the Output from the Path:
    C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;F:\devzone\android-sdk\tools;F:\devzone\android-sdk\platforms\android-8\tools;F:\devzone\android-sdk\platforms\android-7\tools;F:\devzone\jdk1.6.0_21\bin

    But when i try to start the emulator …
    [ERROR] Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH

    — answered November 26th 2010 by Reto Brühlmann
    permalink
    0 Comments
  • Thanks for posting this, it didn't completely help me, but it got me goin on the right way. I don't remember it saying anywhere that you need a JDK (Java Development Kit), I only saw that it needed the android SDK (Which you NEED 1.6, not just 2.1 and 2.2 like I had). I had a JRE (Java Runtime Environment) setup already for Eclipse, and that would run emulators no problem, but i guess for appcelerator they need the JDK instead of the JRE. They really need to work on their Getting Started documentation.

    — answered September 3rd 2010 by Bryant Pulecio
    permalink
    0 Comments
  • finally got it titanium studio to run, make sure ALL of the paths dont have spaces. I ended up using the old DOS style paths which turns "c:\Program Files (x86)" into "C:\Progra~2" in windows 7

    — answered June 7th 2011 by josh tischer
    permalink
    3 Comments
    • nevermind it lied its not working… wtf. I have tried every combination of all of the guides and trials above. I even uninstalled the JDKx64 to use the JDKx86. paths with no spaces, uninstalled Titanium studio, re-installed.

      All of the apps in the path work, i.e. java, python, git, titanium etc.
      still getting the Java_Home error.

      [ERROR] Required jarsigner not found
      [ERROR] Required javac not found
      [ERROR] Required java not found
      [ERROR] One or more required files not found - please check your JAVA_HOME environment variable
      

      Can anyone help?

      Win 7: Titanium Studio w latest updates: Mobile SDK 1.7.0:
      JDK path: C:\Java\jdk1.6.0_25

      — commented June 7th 2011 by josh tischer
    • FYI

      I'm running Windows XP not sure which edition but the setup that worked for me is as follows:

      Environment Variables:

      Variable: android_sdk <br>
      Path: C:\Program Files\Android\android-sdk

      Variable: JAVA_HOME <br>
      Path: C:\Program Files\Java\jdk1.6.0_21

      Variable: Path <br>
      Path: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Git\cmd;%JAVA_HOME%

      NOTE

      Some instructions I found had the JAVA_HOME path as C:\Program Files\Java\jdk1.6.0_21\bin - I removed the "\bin" and now it works perfectly fine.

      — commented June 21st 2011 by Kurtis Thompson
    • this works for me, too! only write C:\java\jdk in JAVA_HOME without \bin und whitespaces or another path seperated with ;

      — commented April 21st 2012 by Tobi Brau
  • Windows 7 Fix after 7hrs craziness .
    So after installing the new version of Titanium Studio with SDK 1.7.1, I still had the same problems.

    Turns out the the System Variables paths need the Full length of the path(C:\Program Files\Java\jdk1.6.0_26\bin), and in the User variable under JAVA_HOME its needs the short DOS version of the path (C:\progra~1\Java\jdk1.6.0_26)

    NOTE:
    So any path under User, that are required by Titanium need to have the short DOS name. Anything under System need to have the full path name.

    Hope this helps.

    — answered July 17th 2011 by Erick Franco
    permalink
    1 Comment
    • Erick, I thought for sure you had the correct solution for this problem (in my case). I shortened the path like you described. Fail. I shortened all the paths… failed again. The odd thing is that javac, java and jarsigner all run from Titanium's terminal window…yet when I try to run an app, I get this error… <SUPER SIGH>

      — commented August 23rd 2011 by Martin Sawyer
  • Hi all,
    I am on an old version of Windows XP. The above didn't work totally for me. The main difference, I ALSO had to:

    [ In Windows XP, Select Start -> Control Panel -> System -> Advanced -> Environment Variables -> System variables -> PATH. ]

    Prepend C:\Program Files\Java\jdk1.6.0_23\bin; to the BEGINNING of the PATH variable.

    So thats in addition to the system variables etc as stated above.
    I found the solution

    http://introcs.cs.princeton.edu/java/15inout/windows-cmd.html

    Good luck. It took me 2 weeks (!) to install everything and get it working. Appcelerator / Java / Android is not an easy or intuitive development platform.

    — answered June 5th 2011 by L F
    permalink
    0 Comments
  • wow they should put some tutorial on this or more clearer step by step. guess they assume people will know what to do. been searching this for like 2 hours googling, finally find it here. thanks guys

    — answered June 5th 2010 by Jimmy Tse
    permalink
    0 Comments
  • Thanks, it also worked for me.

    — answered July 2nd 2010 by Mauricio Del Castillo
    permalink
    0 Comments
  • Though a little bit different the same solution works for xp!! THanks Heaps

    — answered December 29th 2010 by Lewis Callaghan
    permalink
    0 Comments
  • Frank Reed's answer worked for me on Windows 7.

    Thank you, Frank.

    — answered January 7th 2011 by Ramona-Carla Nico
    permalink
    0 Comments
  • Thanks amillion times Frank!!.. solution worked for me.

    — answered January 16th 2011 by Martijn de Jong
    permalink
    0 Comments
  • thank you !

    — answered January 19th 2011 by Yannick Menard
    permalink
    0 Comments
  • Fix worked great on Windows 7. Thanks Frank.

    — answered January 28th 2011 by Kevin Phillips
    permalink
    0 Comments
  • Here is another 100% working solution that works for me when JAVA_HOME was still not recognized by Titanium

    Open Control Panel >> System >> Advanced >> Environment Variables

    Click on NEW in the "User Variables"
    Variable Name: android_sdk
    Variable Value: the path to your android sdk

    Click on NEW again
    Variable Name: JAVA_HOME
    Variable Value: the path to your java jdk

    Now select "Path" in the System Variables
    , edit and append ";%JAVA_HOME%;%android_sdk%" to it

    Under XP (you might need to enable show hidden files and folders in your explorer under Tools, Folder Options, View) to see it

    C:\Documents and Settings\All Users\Application Data\Titanium\mobilesdk\win32\

    Under Vista/7
    C:\ProgramData\Titanium\mobilesdk\win32

    Click on the mobilesdk version that you're having trouble with
    open the "Android" folder
    right click on the filename "builder.py" and choose "Wordpad"
    overwrite everything inside "def set_java_commands(self):"
    to this:

    def set_java_commands(self):
    self.jarsigner = "jarsigner"
    self.javac = "javac"
    self.java = "java"
    found = False
    for path in os.environ['PATH'].split(os.pathsep):
    if os.path.exists(os.path.join(path, 'jarsigner.exe')) and os.path.exists(os.path.join(path, 'javac.exe')):
    self.jarsigner = os.path.join(path, 'jarsigner.exe')
    self.javac = os.path.join(path, 'javac.exe')
    self.java = os.path.join(path, 'java.exe')
    found = True
    break
    if not found:
    error("Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH")
    sys.exit(1)

    of course SAVE
    now you can run the emulator again

    — answered February 24th 2011 by jd nguyen
    permalink
    2 Comments
    • overwrite def set_java_commands(self):

      not work! if u will try please backup original fiel first.

      — commented October 8th 2011 by Guntaphon Manit
    • I'm using XP SP3, the below work for me but not the editing of builder.py :

      Quote: -
      " Here is another 100% working solution that works for me when JAVA_HOME was still not recognized by Titanium

      Open Control Panel >> System >> Advanced >> Environment Variables

      Click on NEW in the "User Variables" Variable Name: android_sdk Variable Value: the path to your android sdk

      Click on NEW again Variable Name: JAVA_HOME Variable Value: the path to your java jdk

      Now select "Path" in the System Variables , edit and append ";%JAVA_HOME%;%android_sdk%" to it "

      But that's not complete yet, the JAVA_HOME path must remove the \bin … eg . " Variable: JAVA_HOME <br> Path: C:\Program Files\Java\jdk1.6.0_21 " as mentioned by Kurtis Thompson below … :)

      Thanks Guys

      — commented May 4th 2012 by walter cheah
  • For those of you that tried all the steps above in Windows 7 but couldn't get it to work. Here what finally worked for me.

    in your Environment >> Path

    put your entire jdk path like this c:\Progra~1\Java\jdk1.6.0_26\bin (my jdk version…yours could be different)

    now you can verify the path by opening up a command prompt and type javac.exe -version again…it should find your jdk.

    i spent a couple weeks on trying everything. Even modified the builder.py code to manually use the direct path, but always ran into problems. But with the above code it works.

    — answered September 30th 2011 by jd nguyen
    permalink
    1 Comment
    • Just add ; on the end. Just a try.

      — commented March 12th 2012 by Aleksa Savic
  • any body know what is the actual solution for the above issue :P

    — answered October 5th 2011 by Rajesh CP
    permalink
    0 Comments
  • I figure it out and it works fine for me now all what we have to do is just set the path as mentioned above and make sure that you are log out from titanium and log in again this is very important. hope this will help.

    — answered October 7th 2011 by Rajesh CP
    permalink
    1 Comment
    • Just have to log out Titanium and Log back in again !!!
      Tried different solutions, and find original Frank's works, Thanks!
      I am on XP.

      — commented January 21st 2012 by Richard Wong
  • i fix this issue, but now when openning the android emulator it gaves me this error:
    ERROR: The process "5720" not found.

    The emulator open anyway but i was wondering if this error can "hurt" in any way the app development… any one can help?

    — answered January 6th 2012 by Tiago Ferreira
    permalink
    2 Comments
    • I also had the same issue when i am working in Windows,
      but it doesn't cause any damage for my application development so i didn't dig in detail.

      — commented January 6th 2012 by Rajesh CP
    • Yep, i´m on windows too, thats really my doubt if it can cause any damage to the application that i´m developing, an error its an error and something its not working right, so i´m trying to understand if i´m doing anything wrong, since i´m a newbie at titanium studio…

      Did you already finish and export an application and try-it on a mobile phone to see if anything its affected by this error?

      Thanks for your reply!

      — commented January 6th 2012 by Tiago Ferreira
  • I was able to fix this issue on Window 7 with these steps:

    -1. Left click to our “Computer” Icon and click “Properties”.

    -2. The window should appear with the Left Hand Side menu saying “Control Panel Home” , we will click the “Advanced System Settings”.

    -3. A popup window appears after that, and then we click the button ” Environment Variables “.

    -4. Another window appears and it is for Environment Variables, on the appear part of it, there is a list for System Variables . Let’s add variables or update our “path” variable if it is already existing.

    -5. Click ”New” to create a variable JAVA_HOME with your java path ej. C:\Java\jdk1.6.0_20

    -6. Edit your PATH variable and add at the begining %JAVA_HOME%; without "bin" because in builder.py the word bin is added.

    — answered January 23rd 2012 by Bernard Zaragoza
    permalink
    0 Comments
  • I have tried everything in this posting and NONE of them have worked. No matter where I put it, whether it has spaces or not I get the same error. I am running win7 64-bit

    — answered March 29th 2012 by Kender Melchizedek
    permalink
    0 Comments
  • I have tried that also and it still gives me the same error

    — answered March 29th 2012 by Kender Melchizedek
    permalink
    0 Comments
  • Guys i got the answer.. it's so simple… just leave the ";" away at the end =) this was my problem after hours

    — answered June 6th 2012 by Volker Weckbach
    permalink
    1 Comment
    • After at least an hour, it finally works after putting ; at the end on the line, thanks!! +1

      — commented August 13th 2012 by jp roz
  • Confirmed, this link sorted the problem out: http://developer.appcelerator.com/doc/mobile/mobile-build-windows

    — answered July 19th 2012 by Kenneth Davidson
    permalink
    0 Comments
  • I deleted titanium studio pretty much immediatly after having this error and fixing it. If you make a complete IDE but cant give the option do this properly other than editing windows path variables, I lost all confidence in the product. I am programming in Eclipse nowadays.

    — answered September 13th 2012 by laap saap
    permalink
    0 Comments
  • Well, I got this one working about an hour ago, so I will try to pass along what little I figured out.
    Right-click on "Computer" on the win7 laptop. Select "Properties" then "Advanced System Settings" from the left-hand Tasks column. Then when "System Properties" opens, go to the "Advanced" tab and click on "Environment Variables". Go to "System Variables", select "Path" and then click on "Edit…"variable name as path and variable.value Put a semi-colon at the end of the path as it stands and then type the exact path to the "bin" directory of the JDK. For me, it was C:Program Files (x86)Javajdk1.6.0_20bin (with appropriate backslashes –for some reason this posting system doesn't display them??). You can tell whether you have succeeded by opening a Command Prompt (a fresh one opened AFTER editing the path) and typing "javac" from the prompt. If it fails, you will see "'javac' is not recognized as an internal or external command" etc., and you should check your editing of the path carefully. If it has succeeded, you will see a long "Usage" statement for javac. An interesting nuisance: if there is a space after the semi-colon and before the C: of the new path item, it doesn't work. Took me a while to guess that that might be a problem..

    — answered October 2nd 2012 by sharath yadhav
    permalink
    0 Comments
  • I've also done everything listed and it is not working for me. I don't even have a javac file.

    PLEASE HELP!!!

    — answered October 2nd 2012 by David Matichuk
    permalink
    0 Comments
  • I fix the problem dont forget to restart the system after updatining the environnement variable

    — answered November 1st 2012 by Amine djouk
    permalink
    0 Comments
  • Still having trouble with this in 2014! I compiled everyones responses with the documentation and came up with this.. (worked first go!)

    Check the software compatibility matrix. Currently no Windows JDK 64bit works with appcelerator!
    http://docs.appcelerator.com/titanium/latest/#!/guide/Titanium_Compatibility_Matrix

    I installed JDK 1.6 32bit (1.7 is not supported) in c:\java\jdk… (appcelerator docs specify to remove 'program files' but it may not matter)

    In the android sdk manager, install: (unsure if this is necessary but it's required in the docs)

    •Google APIs by Google Inc., Android API 4, revision 2

    •SDK Platform Android 1.6, API 4, revision 3

    (adjust all to suit your path)

    JAVA_HOME c:\java\jdk (NO /bin)

    PATH (ensure no spaces, write all on one long line, along with your current path)

    C:\progra~2\Java\jre6;

    C:\Java\jdk1.6.0_45\bin;

    C:\Program Files (x86)\Android\android-sdk\tools;

    C:\Program Files (x86)\Android\android-sdk\platform-tools;

    C:\Program Files (x86)\Android\android-sdk

    C:\Program Files (x86)\Android\android-sdk\platforms\android-4\tools;

    This doc really helped

    http://developer.appcelerator.com/doc/mobile/mobile-build-windows

    — answered February 16th 2014 by Ian Murnane
    permalink
    1 Comment
    • also close and restart any command prompts after editing the path. I used titaniumstudio -clean, though it may also not be necessary?

      — commented February 16th 2014 by Ian Murnane
  • Thank you Frank.
    Had the same problem and that fixed it for me.

    — answered May 5th 2010 by John Lullie
    permalink
    0 Comments
  • HI

          I have tried the same as above .
    

    javac & jarsigner is working perfect in command prompt.may i know the right solution to solve this problem([ERROR] Error locating JDK: set $JAVA_HOME or put javac and jarsigner on your $PATH)

    — answered May 6th 2010 by siva sankar
    permalink
    4 Comments
    • This post helped me. - 1.JAVA_HOME should NOT include the bin directory. 2. Add ;%JAVA_HOME%\bin into your PATH environment variable.

      — commented January 27th 2012 by Daniel Miller
    • WTF!!!!!

      — commented June 23rd 2012 by scott newman
    • I tried all this and same error over and over???? PATH is ;%JAVA_HOME%\bin and JAVA_HOME is
      C:\Progra~2\Java\jdk1.6.0 and did the "blah blah -clean" and same error…. How did this App get a good rating when it won't work on windows that most corps use???????

      — commented June 23rd 2012 by scott newman
    • Try this :
      – Go On Titanium>windows>preferences>workspace>linked resources
      – Add new path variable
      – Name: JAVA_HOME, Location: C:\Program Files (x86)\Java\jdk\bin

      Warning: make sure that you choose the 32bit version of jdk if you have windows 64bit

      It's worked for me !!

      — commented March 3rd 2015 by Tiama Ousseyni
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.