Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » unable to find javac compiler
unable to find javac compiler [message #51548] Fri, 04 April 2003 12:42 Go to next message
Eclipse UserFriend
Originally posted by: mikeamickey.web.de

Hi everybody.

When running ant tasks I get the following message.

[javac] BUILD FAILED: file:D:/Sun ONE
Projects/noah/NoahJava/build.xml:235: 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

I added JAVA_HOME in Preferences->Java->Classpath Variables with the JDK
root folder but it still does not work.

Thanks,
Michael
Re: unable to find javac compiler [message #51574 is a reply to message #51548] Fri, 04 April 2003 13:55 Go to previous messageGo to next message
stoil is currently offline stoilFriend
Messages: 46
Registered: July 2009
Member
You should try to add tools.jar in runtime settings for ant.
regards,
stoil
"Michael Hartmann" <mikeamickey@web.de> wrote in message
news:b6juio$1oh$1@rogue.oti.com...
> Hi everybody.
>
> When running ant tasks I get the following message.
>
> [javac] BUILD FAILED: file:D:/Sun ONE
> Projects/noah/NoahJava/build.xml:235: 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
>
> I added JAVA_HOME in Preferences->Java->Classpath Variables with the JDK
> root folder but it still does not work.
>
> Thanks,
> Michael
>
Re: unable to find javac compiler [message #51596 is a reply to message #51574] Fri, 04 April 2003 17:00 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Or you can start eclipse with your JDK install using the -vm arg...then
tools.jar will be added automatically.

Darins

"Stoil Valchkov" <ssv_1234@hotmail.com> wrote in message
news:b6k2h3$6e3$1@rogue.oti.com...
> You should try to add tools.jar in runtime settings for ant.
> regards,
> stoil
> "Michael Hartmann" <mikeamickey@web.de> wrote in message
> news:b6juio$1oh$1@rogue.oti.com...
> > Hi everybody.
> >
> > When running ant tasks I get the following message.
> >
> > [javac] BUILD FAILED: file:D:/Sun ONE
> > Projects/noah/NoahJava/build.xml:235: 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
> >
> > I added JAVA_HOME in Preferences->Java->Classpath Variables with the JDK
> > root folder but it still does not work.
> >
> > Thanks,
> > Michael
> >
>
>
Re: unable to find javac compiler [message #592520 is a reply to message #51548] Fri, 04 April 2003 13:55 Go to previous message
stoil is currently offline stoilFriend
Messages: 46
Registered: July 2009
Member
You should try to add tools.jar in runtime settings for ant.
regards,
stoil
"Michael Hartmann" <mikeamickey@web.de> wrote in message
news:b6juio$1oh$1@rogue.oti.com...
> Hi everybody.
>
> When running ant tasks I get the following message.
>
> [javac] BUILD FAILED: file:D:/Sun ONE
> Projects/noah/NoahJava/build.xml:235: 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
>
> I added JAVA_HOME in Preferences->Java->Classpath Variables with the JDK
> root folder but it still does not work.
>
> Thanks,
> Michael
>
Re: unable to find javac compiler [message #592529 is a reply to message #51574] Fri, 04 April 2003 17:00 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Or you can start eclipse with your JDK install using the -vm arg...then
tools.jar will be added automatically.

Darins

"Stoil Valchkov" <ssv_1234@hotmail.com> wrote in message
news:b6k2h3$6e3$1@rogue.oti.com...
> You should try to add tools.jar in runtime settings for ant.
> regards,
> stoil
> "Michael Hartmann" <mikeamickey@web.de> wrote in message
> news:b6juio$1oh$1@rogue.oti.com...
> > Hi everybody.
> >
> > When running ant tasks I get the following message.
> >
> > [javac] BUILD FAILED: file:D:/Sun ONE
> > Projects/noah/NoahJava/build.xml:235: 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
> >
> > I added JAVA_HOME in Preferences->Java->Classpath Variables with the JDK
> > root folder but it still does not work.
> >
> > Thanks,
> > Michael
> >
>
>
Previous Topic:exception on start up eclipse
Next Topic:Can I create build.xml file of ANT with Eclipse?
Goto Forum:
  


Current Time: Wed Sep 18 17:16:38 GMT 2024

Powered by FUDForum. Page generated in 0.03403 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top