[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Eclipse can't find javac
|
Actually... it's curious that Eclipse is looking for javac at all.
Eclipse uses ecj to compile Java.
What are you doing that results in this error?
Wayne
On Mon, 2008-07-07 at 11:21 -0700, Kyle Peter Fritz wrote:
> When attempting to compile, I get an error:
>
> Compilation error: 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\jdk1.6.0_06\jre"
>
> Obviously, this isn't right. It should be set to "C:\Program
> Files\Java\jdk1.6.0_06". I don't know why it has that "jre" directory at
> the end. My environment variable for JAVA_HOME is set to "C:\Program
> Files\Java\jdk1.6.0_06". The location of the installed JRE in
> Preferences>Java>Installed JREs is "C:\Program Files\Java\jdk1.6.0_06".
> Even Ant seems configured correctly with
> Preferences>Ant>Runtime>Classpath>Global Entries listing "C:\Program
> Files\Java\jdk1.6.0_06\lib\tools.jar".
>
> I can't figure out why Eclipse is looking for javac in the jre subdirectory,
> and I am scratching my head trying to figure out where this setting was
> made. Does anybody have any idea why this is happening?
>
> -KPF
>
>