|
|
Re: Eclipse/ANT problem with javac task [message #95601 is a reply to message #93430] |
Thu, 17 July 2003 10:15 |
Eclipse User |
|
|
|
Originally posted by: veith.pixel.de
hi,
I got this "feature" too, some time ago. The point is, eclipse does not
use the runtime, you've specified by java_home but the jre that has
set the registry entry (under windows) JavaHome. A jre does not contain
any compilers. You can force eclipse to use the runtime under java_home:
-vm %java_home%/bin/javaw.exe
Gernot
Andreas Schildbach wrote:
> Hello everyone,
>
> since a few weeks I keep getting the attached error message if I invoke
> a javac ant task from within Eclipse on my WinXP system. It happens with
> versions 2.1 and 2.1.1.
>
> I can't remember what configuration I have been fooling around.
>
> However, I double-checked:
>
> - JAVA_HOME is indeed defined (as a system environment variable).
>
> - The correct JARs are included in the Ant classpath
> (Preferences->Ant->Runtime->Classes).
>
> What else should I check?
>
> Now here is the error message:
>
> compile:
> [copy] Copying 1 file to C:\eclipse\workspace\xxx\build\classes
> [javac] Compiling 1 source file to
> C:\eclipse\workspace\xxx\build\classes
> [javac] BUILD FAILED: file:C:/eclipse/workspace/xxx/build.xml:27:
> 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
>
> Regards,
>
> Andreas
>
|
|
|
Powered by
FUDForum. Page generated in 0.03751 seconds