Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-ant-dev] Building using ant with eclipse 2.1

I added the tools.jar to ant classpath and it is working...

thanks...

-----Original Message-----
From: Darin Swanson [mailto:darins@xxxxxxxxx]
Sent: Fri, January 03, 2003 2:20 PM
To: platform-ant-dev@xxxxxxxxxxx
Subject: Re: [platform-ant-dev] Building using ant with eclipse 2.1


You are attempting to use the javac task without having a tools.jar on the
Ant runtime classpath.
The java_home error is misdirecting as Ant assumes you are running from the
commandline.
So the easiest solution is to add a tools.jar to the Ant classpath using the
Ant preferences from your D:\j2sdk1.4.1_0\lib.
For other possibilities see http://eclipsewiki.swiki.net/118#compiler

HTH
Darins

Note: These type of questions are better asked on the eclipse.tools
newsgroup as this forum is more for ant development discussions.

>
>                       "Hamdan, Saad"
>                       <Saad.Hamdan@transameri         To:
>                       ca.com>
"'platform-ant-dev@xxxxxxxxxxx'"
>                       Sent by:
<platform-ant-dev@xxxxxxxxxxx>
>                       platform-ant-dev-admin@         cc:
>                       eclipse.org                     Subject: RE:
[platform-ant-dev]
>                                                       Building using ant
with eclipse 2.1
>
>                       01/02/2003 01:01 PM
>                       Please respond to
>                       platform-ant-dev
>
>
>
>
>
>
>
>
> Hi,
> I am getting the following error when I run by build.xml:
>
> compile:
>        [javac] Compiling 2 source files to \_usr\tare\java\classes
>        [javac] BUILD FAILED: file:D:/eclipse/workspace/CAReS/build.xml:14:
> 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 checked my path, classpath, and Java_HOME and they all point to
> "D:\j2sdk1.4.1_01\bin" that contain the javac.exe
> Please let me know how I resolve the following error.
>
> Thanks,
>
>
>
> -----Original Message-----
> From: David Medinets [mailto:medined@xxxxxxxxxxx]
> Sent: Thu, January 02, 2003 8:11 AM
> To: platform-ant-dev@xxxxxxxxxxx
> Subject: Re: [platform-ant-dev] Building using ant with eclipse 2.1
>
>
> Are you unfamiliar with both Ant and Eclipse or just Eclipse?
>
> I usually place my build.xml in the root directory of my project. I use
the
> Planty plugin (findable through google) to edit the file. When I want to
> run
> a task, I right-click then choose the 'Run Ant..' menu option. I'm using
> Eclipse v2.01 but the concepts are the same, I think.
>
> I hope that gets you started.
>
> ----- Original Message -----
> From: "Hamdan, Saad" <Saad.Hamdan@xxxxxxxxxxxxxxxx>
>
>
> > I am new to eclipse and I am trying to build using ant for the first
> time.
>
>
> _______________________________________________
> platform-ant-dev mailing list
> platform-ant-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-ant-dev
> _______________________________________________
> platform-ant-dev mailing list
> platform-ant-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-ant-dev
>
>

_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev


Back to the top