[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Eclipse can't find javac

Kyle Peter Fritz wrote:
Yes, I have eclipse configured as described on the Grails website. There isn't any mention of similar issues there, so I figured this is a problem with Eclipse and came here.

I'd suggest asking on the Grails forums. Eclipse does not use javac, so it must be something special that Grails projects are doing.


Eric


"David Wegener" <wegener@xxxxxxxxxxxxxx> wrote in message news:g4uf6v$lg9$1@xxxxxxxxxxxxxxxxxxxx
Kyle Peter Fritz wrote:
Actually, I am developing a Grails application (grails.org). This problem is puzzling because issuing the command "grails run-app" from the command line, which compiles the app independently from Eclipse, works just fine.

KPF

Have you installed a plugin for Grails development? I'm not familiar with with a Grails plugin on the Eclipse sight. If it is a third party plugin, you might want to check with the provider of the plugin.


"Wayne Beaton" <wayne@xxxxxxxxxxx> wrote in message news:1215456802.6011.9.camel@xxxxxxxxxx
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