JAVA_HOME error

38 views
Skip to first unread message

Golden

unread,
Oct 14, 2010, 11:24:37 AM10/14/10
to phonegap
c:\work\android-sdk-windows\tools\ant\ant_rules_r3.xml:336 Unable to
find a javac compiler
com.sun.tools.javac.main is not on the classpath.
Perhaps JAVA_HOME does not point to the jdk
it is currently set to c:\program files\java\jre6

I am going to try to get javac to launch from a command line.

Fact 1:
I do have eclipse running and completed the "Hello World"

Issue 1:
I don't know why ant can't find the Javac compiler.

Golden

unread,
Oct 14, 2010, 12:35:07 PM10/14/10
to phonegap
I built a batch file to see if the javahome variable is being set

@ECHO %JAVA_HOME%
@echo %ANT_HOME%

The directories
c:\program files\java\jdk1.6.0_21
c:\work\apache-ant-1.8.1-bin\apache-ant-1.8.1

Golden

unread,
Oct 14, 2010, 12:50:10 PM10/14/10
to phonegap
I changed "Program Files" to "Progra~1" and the problem still
persists.

Golden

unread,
Oct 16, 2010, 11:00:30 AM10/16/10
to phonegap
The operating system is Windows XP

On Oct 14, 10:50 am, Golden <dnishim...@listensoftware.com> wrote:
> I changed "Program Files" to "Progra~1" and the problem still
> persists.
>
> On Oct 14, 9:24 am, Golden <dnishim...@listensoftware.com> wrote:
>
> > c:\work\android-sdk-windows\tools\ant\ant_rules_r3.xml:336 Unable to
> > find a javac compiler
> > com.sun.tools.javac.main is not on the classpath.
> > PerhapsJAVA_HOMEdoes not point to the jdk
Reply all
Reply to author
Forward
0 new messages