I can't find javac

You must Login before you can answer or comment on any questions.

Hi,

I'm pretty new to this. I just installed the Android SDK, and I'm trying to run the kitchensink, however I get this error:

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

Any clue?

8 Answers

You'll need to have the latest JDK (1.6) installed as well. Can you try executing "javac" from the command line?

Make sure to install JDK as well as JRE, as Marshall said. I suspect this is the problem.

It will automatically add the right path to your $PATH environment variable.

If it doesn't, you can control this manually. I had to do this in Windows once. This page shows you how to edit the $PATH environment variable in Windows XP: http://vlaurie.com/computers2/Articles/environment.htm#editing

Do I check that by typing 'javac' into command prompt?

If so, it is not recognized as a command.

Do I check that by typing 'javac' into command prompt?

If so, it is not recognized as a command.

Edit: Sorry this seems like a duplicate reply for some reason. Just ignore.

I checked my environment variables, and for the 'path' variable, I have:

C:Program FilesActiveState Komodo Edit 4;%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;C:hpbinPython;c:Program FilesCommon FilesRoxio SharedDLLShared;c:Program FilesCommon FilesRoxio Shared9.0DLLShared;c:Program FilesCommon FilesAutodesk Shared;c:Program FilesMicrosoft SQL Server90Toolsbinn;C:Program FilesMySQLMySQL Server 6.0bin;C:rubybin;C:Program FilesAutodeskBackburner;%SYSTEMROOT%System32WindowsPowerShellv1.0;C:Program FilesQuickTimeQTSystem

Do I need to add something?

I checked my environment variables, and for the 'path' variable, I have:

C:Program FilesActiveState Komodo Edit 4;%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;C:hpbinPython;c:Program FilesCommon FilesRoxio SharedDLLShared;c:Program FilesCommon FilesRoxio Shared9.0DLLShared;c:Program FilesCommon FilesAutodesk Shared;c:Program FilesMicrosoft SQL Server90Toolsbinn;C:Program FilesMySQLMySQL Server 6.0bin;C:rubybin;C:Program FilesAutodeskBackburner;%SYSTEMROOT%System32WindowsPowerShellv1.0;C:Program FilesQuickTimeQTSystem

Do I need to add something?

Your Answer

Think you can help? Login to answer this question!