Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse 3.0 M8, Ant plugin, Could not find one or more classes
Eclipse 3.0 M8, Ant plugin, Could not find one or more classes [message #152912] Wed, 07 April 2004 01:08 Go to next message
Eclipse UserFriend
Originally posted by: anony_java.anon.foobar

I am using Eclipse 3.0M8 on Windows XP.

The Ant plugin in Eclipse 3.0 M8 is not configured properly.

When I try to run an Ant build script inside of Eclipse, I see
this error:

Could not find one or more classes: "org.apache.tools.ant.BuildException"

I looked at the Ant configuration.

Windows ---> Preferences --> Ant --> Runtime --> Classpath

I see this:

Ant Home Entries (c:\eclipse\plugins\org.apache.ant_1.6.1)
/c:/eclipse/plugins/org.apache.ant_1.5.4/lib/ant.jar
/c:/eclipse/plugins/org.apache.ant_1.5.4/lib/optional.jar
/c:/j2sdk1.4.2_02/lib/tools.jar

I've got Ant plugin 1.6.1 and it is trying to load the Ant 1.5.4 jar files

My plugins folder, c:\eclilpse\plugins, contains a subdirectory:
org.apache.ant_1.6.1

The org.apache.ant_1.5.4 subdirectory does not exist
Re: Eclipse 3.0 M8, Ant plugin, Could not find one or more classes [message #152920 is a reply to message #152912] Wed, 07 April 2004 01:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anony_java.anon.foobar

I found a workaround:

1) Windows ---> Preferences --> Ant --> Runtime --> Classpath

2) Ant Home Entries

Remove: /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/ant.jar
Remove:
/c:/eclipse/plugins/org.apache.ant_1.5.4/lib/optional.jar

Add: /c:/eclipse/plugins/org.apache.ant_1.6.1/lib/ant.jar
Add:
/c:/eclipse/plugins/org.apache.ant_1.6.1/lib/ant-launcher.ja r



Anony wrote:
>
> I am using Eclipse 3.0M8 on Windows XP.
>
> The Ant plugin in Eclipse 3.0 M8 is not configured properly.
>
> When I try to run an Ant build script inside of Eclipse, I see
> this error:
>
> Could not find one or more classes: "org.apache.tools.ant.BuildException"
>
> I looked at the Ant configuration.
>
> Windows ---> Preferences --> Ant --> Runtime --> Classpath
>
> I see this:
>
> Ant Home Entries (c:\eclipse\plugins\org.apache.ant_1.6.1)
> /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/ant.jar
> /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/optional.jar
> /c:/j2sdk1.4.2_02/lib/tools.jar
>
> I've got Ant plugin 1.6.1 and it is trying to load the Ant 1.5.4 jar files
>
> My plugins folder, c:\eclilpse\plugins, contains a subdirectory:
> org.apache.ant_1.6.1
>
> The org.apache.ant_1.5.4 subdirectory does not exist
>
Re: Eclipse 3.0 M8, Ant plugin, Could not find one or more classes [message #152936 is a reply to message #152920] Wed, 07 April 2004 02:52 Go to previous messageGo to next message
Eclipse UserFriend
I have not seen this state in my testing.

You best bet is use the "Restore Defaults" functionality or to make use of
the Set Ant Home...
Setting only the ant.jar and the ant-launcher.jar does not give you the full
set of required Ant JARs.

HTH
Darins

"Anony" <anony_java@anon.foobar> wrote in message
news:c503bn$pn9$1@eclipse.org...
>
> I found a workaround:
>
> 1) Windows ---> Preferences --> Ant --> Runtime --> Classpath
>
> 2) Ant Home Entries
>
> Remove: /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/ant.jar
> Remove:
> /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/optional.jar
>
> Add: /c:/eclipse/plugins/org.apache.ant_1.6.1/lib/ant.jar
> Add:
> /c:/eclipse/plugins/org.apache.ant_1.6.1/lib/ant-launcher.ja r
>
>
>
> Anony wrote:
> >
> > I am using Eclipse 3.0M8 on Windows XP.
> >
> > The Ant plugin in Eclipse 3.0 M8 is not configured properly.
> >
> > When I try to run an Ant build script inside of Eclipse, I see
> > this error:
> >
> > Could not find one or more classes:
"org.apache.tools.ant.BuildException"
> >
> > I looked at the Ant configuration.
> >
> > Windows ---> Preferences --> Ant --> Runtime --> Classpath
> >
> > I see this:
> >
> > Ant Home Entries (c:\eclipse\plugins\org.apache.ant_1.6.1)
> > /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/ant.jar
> > /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/optional.jar
> > /c:/j2sdk1.4.2_02/lib/tools.jar
> >
> > I've got Ant plugin 1.6.1 and it is trying to load the Ant 1.5.4 jar
files
> >
> > My plugins folder, c:\eclilpse\plugins, contains a subdirectory:
> > org.apache.ant_1.6.1
> >
> > The org.apache.ant_1.5.4 subdirectory does not exist
> >
Re: Eclipse 3.0 M8, Ant plugin, Could not find one or more classes [message #153067 is a reply to message #152936] Wed, 07 April 2004 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anony_java.anon.foobar

I think I know how my environment got into this state.

Prior to installing 3.0 M8, I was using 3.0 M6 on this computer.

Using 3.0 M6, I created a workspace called c:\myworkspace

Prior to installing 3.0 M8, I removed 3.0 M6 from
my system ( rm -rf c:\eclipse )

After I installed 3.0 M8, I told Eclipse to use my existing workspace,
c:\myworkspace


Darin Swanson wrote:
> I have not seen this state in my testing.
>
> You best bet is use the "Restore Defaults" functionality or to make use of
> the Set Ant Home...
> Setting only the ant.jar and the ant-launcher.jar does not give you the full
> set of required Ant JARs.
>
> HTH
> Darins
>
> "Anony" <anony_java@anon.foobar> wrote in message
> news:c503bn$pn9$1@eclipse.org...
>
>>I found a workaround:
>>
>>1) Windows ---> Preferences --> Ant --> Runtime --> Classpath
>>
>>2) Ant Home Entries
>>
>> Remove: /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/ant.jar
>> Remove:
>>/c:/eclipse/plugins/org.apache.ant_1.5.4/lib/optional.jar
>>
>> Add: /c:/eclipse/plugins/org.apache.ant_1.6.1/lib/ant.jar
>> Add:
>> /c:/eclipse/plugins/org.apache.ant_1.6.1/lib/ant-launcher.ja r
>>
>>
>>
>>Anony wrote:
>>
>>>I am using Eclipse 3.0M8 on Windows XP.
>>>
>>>The Ant plugin in Eclipse 3.0 M8 is not configured properly.
>>>
>>>When I try to run an Ant build script inside of Eclipse, I see
>>>this error:
>>>
>>> Could not find one or more classes:
>
> "org.apache.tools.ant.BuildException"
>
>>>I looked at the Ant configuration.
>>>
>>> Windows ---> Preferences --> Ant --> Runtime --> Classpath
>>>
>>>I see this:
>>>
>>>Ant Home Entries (c:\eclipse\plugins\org.apache.ant_1.6.1)
>>> /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/ant.jar
>>> /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/optional.jar
>>> /c:/j2sdk1.4.2_02/lib/tools.jar
>>>
>>>I've got Ant plugin 1.6.1 and it is trying to load the Ant 1.5.4 jar
>
> files
>
>>>My plugins folder, c:\eclilpse\plugins, contains a subdirectory:
>>>org.apache.ant_1.6.1
>>>
>>>The org.apache.ant_1.5.4 subdirectory does not exist
>>>
>
>
>
Re: Eclipse 3.0 M8, Ant plugin, Could not find one or more classes [message #153075 is a reply to message #153067] Wed, 07 April 2004 11:38 Go to previous message
Eclipse UserFriend
As I stated in the Ant mailing list, please log a bug report with the
relevant details.

And there is no need to double post. I would suggest that the newsgroup is
the best place for these types of discussions.

Thanks
Darins

"Anony" <anony_java@anon.foobar> wrote in message
news:c512q4$3au$1@eclipse.org...
>
> I think I know how my environment got into this state.
>
> Prior to installing 3.0 M8, I was using 3.0 M6 on this computer.
>
> Using 3.0 M6, I created a workspace called c:\myworkspace
>
> Prior to installing 3.0 M8, I removed 3.0 M6 from
> my system ( rm -rf c:\eclipse )
>
> After I installed 3.0 M8, I told Eclipse to use my existing workspace,
> c:\myworkspace
>
>
> Darin Swanson wrote:
> > I have not seen this state in my testing.
> >
> > You best bet is use the "Restore Defaults" functionality or to make use
of
> > the Set Ant Home...
> > Setting only the ant.jar and the ant-launcher.jar does not give you the
full
> > set of required Ant JARs.
> >
> > HTH
> > Darins
> >
> > "Anony" <anony_java@anon.foobar> wrote in message
> > news:c503bn$pn9$1@eclipse.org...
> >
> >>I found a workaround:
> >>
> >>1) Windows ---> Preferences --> Ant --> Runtime --> Classpath
> >>
> >>2) Ant Home Entries
> >>
> >> Remove:
/c:/eclipse/plugins/org.apache.ant_1.5.4/lib/ant.jar
> >> Remove:
> >>/c:/eclipse/plugins/org.apache.ant_1.5.4/lib/optional.jar
> >>
> >> Add: /c:/eclipse/plugins/org.apache.ant_1.6.1/lib/ant.jar
> >> Add:
> >> /c:/eclipse/plugins/org.apache.ant_1.6.1/lib/ant-launcher.ja r
> >>
> >>
> >>
> >>Anony wrote:
> >>
> >>>I am using Eclipse 3.0M8 on Windows XP.
> >>>
> >>>The Ant plugin in Eclipse 3.0 M8 is not configured properly.
> >>>
> >>>When I try to run an Ant build script inside of Eclipse, I see
> >>>this error:
> >>>
> >>> Could not find one or more classes:
> >
> > "org.apache.tools.ant.BuildException"
> >
> >>>I looked at the Ant configuration.
> >>>
> >>> Windows ---> Preferences --> Ant --> Runtime --> Classpath
> >>>
> >>>I see this:
> >>>
> >>>Ant Home Entries (c:\eclipse\plugins\org.apache.ant_1.6.1)
> >>> /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/ant.jar
> >>> /c:/eclipse/plugins/org.apache.ant_1.5.4/lib/optional.jar
> >>> /c:/j2sdk1.4.2_02/lib/tools.jar
> >>>
> >>>I've got Ant plugin 1.6.1 and it is trying to load the Ant 1.5.4 jar
> >
> > files
> >
> >>>My plugins folder, c:\eclilpse\plugins, contains a subdirectory:
> >>>org.apache.ant_1.6.1
> >>>
> >>>The org.apache.ant_1.5.4 subdirectory does not exist
> >>>
> >
> >
> >
>
>
>
Previous Topic:CVS/SVN checkouts in same package tree
Next Topic:Java object monitor plugin
Goto Forum:
  


Current Time: Sun May 11 14:20:58 EDT 2025

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

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

Back to the top