On Sat, 2011-03-12 at 20:46 +0000, Mat Booth wrote:
On 12 March 2011 20:43, Rob Scala <rob(a)scalasystems.com>
wrote:
> On Sat, 2011-03-12 at 20:22 +0000, Mat Booth wrote:
>> On 12 March 2011 02:08, Rob Scala <rob(a)scalasystems.com> wrote:
>> > I recently installed eclipse on my f14 box, and I can't get ant
support
>> > to work. No ant preferences. No ant editor.
>> >
>> > Am I missing some package? Here is what I have installed:
>> >
>> > eclipse-platform-3.6.1-6.1.fc14.x86_64
>> > eclipse-jdt-3.6.1-6.1.fc14.x86_64
>> > eclipse-subclipse-1.6.16-1.fc14.noarch
>> > tomcat5-jasper-eclipse-5.5.27-7.4.fc12.noarch
>> > eclipse-swt-3.6.1-6.1.fc14.x86_64
>> > eclipse-rcp-3.6.1-6.1.fc14.x86_64
>> > icu4j-eclipse-4.2.1-1.fc14.x86_64
>> > eclipse-gef-3.6.1-1.fc14.noarch
>> > eclipse-svnkit-1.3.3-5.fc14.noarch
>> >
>> > Thanks for your help,
>> >
>> > Rob
>> >
>> >
>>
>>
>> What do you mean by ant support? You should be able to right-click an
>> ant script in your workspace and go "Run as"-->"Ant
Build"
>>
>
> No, "Run As" on build.xml does not have an "Ant Build" option
either.
>
> It seems like there is a plugin missing or an exception loading the
> plugin. But I understand that ant support is included in the base
> package.
>
> I tried removing ./.eclipse and my workspace, and reinstalling all of
> eclipse. Still no luck. I also ran a fresh install from yum on a
> different machine (CentOS 5.4), and all the ant features were there.
>
> Strange - I must be missing something simple.
>
>
>
Is there anything interesting in the log file?
It's located in /path/to/workspace/.metadata/.log
Before I cleaned everything and reinstalled, the log contained these
three items (multiple times):
---------------- .log entries --------------
!ENTRY org.eclipse.ui 4 0 2011-03-09 20:05:05.798
!MESSAGE Unable to create editor ID
org.eclipse.ant.ui.internal.editor.AntEditor: No editor descriptor for
id org.eclipse.ant.ui.internal.editor.AntEditor
and
!SUBENTRY 2 org.eclipse.ui 4 4 2011-03-09 20:05:11.139
!MESSAGE Could not create view: org.eclipse.ant.ui.views.AntView
and
!ENTRY org.eclipse.core.resources 4 2 2011-03-09 22:59:23.369
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.resources".
!STACK 1
org.eclipse.debug.core.DebugException: Launch configuration type id
"org.eclipse.ant.AntBuilderLaunchConfigurationType" does not exist.
Possible causes:
Missing specification of a launch type (missing plug-in)
Incorrect launch configuration XML
---------------------------
After cleaning and reinstalling, the log is basically empty. So the
above errors my be red herrings. I tried creating a new user and
running eclipse, but no luck (no ant preferences, no ant builder, no ant
editor). I tried installing Sun's jdk, and got the same result.
I tried to find a difference between my machine's eclipse installation
and another f14 installation (with working ant features), without luck.
The /usr/lib64/eclipse tree looks the same regarding ant jars.
It seems like the ant jars are not being recognized on my machine.
Possibly a classpath issue. But I can't see the difference between the
two machines.