[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Ant unable to find javac compiler
|
- From: bbernard@xxxxxxxxxx (Bernard)
- Date: Thu, 3 Apr 2003 03:47:12 +0000 (UTC)
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
Many thanks Darins!
The -vm option is all I wanted :)
/bernard
Darin Swanson wrote:
> Eclipse will add the required tools.jar to the Ant runtime classpath iff you
> start Eclipse with a JDK install.
> Likely you have started Eclipse with a JRE install.
> You can add the tools.jar to the Ant runtime classpath yourself or start
> Eclipse and use the "-vm" option to point to your JDK install.
> HTH
> Darins
> "Bernard" <bbernard@xxxxxxxxxx> wrote in message
> news:b6c1k9$gcf$1@xxxxxxxxxxxxxxxx
> > Hi all,
> >
> > I have just installed eclipse 2.1 and trying to run my ant build script,
> > but it complained being unable to find javac on its classpath.
> > --------------------------------------------------------------------------
> ---
> > [javac] BUILD FAILED: file:C:/workdev/xprofiler/build.xml:267: 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
> > --------------------------------------------------------------------------
> ---
> >
> > Executing the build from a command line works just fine. However the same
> > build file executed from within eclipse fails. It works only if I
> > explicitly set the classpath (preferences -> Ant -> Runtime -> Classpath)
> > to point to tools.jar.
> >
> > I clearly can see JAVA_HOME env is properly set.
> > I use winxp, sun jdk 1.4.1_02, ant 1.5.2. On cmd line, ant is intellegent
> > enough to figure out javac compiler on its own. In eclipse it behaves
> > diferently, it's this expected behavior? or am I missing something here?
> > anybody shed me light, please.
> >
> >
> > thanks,
> > /bernard
> >