I can't find javac
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.
-
Connor, have you downloaded/installed JDK6? Here's a link:
http://java.sun.com/javase/downloads/widget/jdk6.jsp -
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.
-
Yes. I did so right before posting this thread.
-
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?