On Sat, Oct 13, 2007 at 10:34:20AM +0800, darren wrote:
> > Package: eclipse-jdt
> > Version: 3.2.2-4
> > Severity: important
> > 
> > when I using ant editor to open a build.xml which is not empty.It
> > fails
> > to open
> > Error Log is :
> > 
> > java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
> >     at org.apache.tools.ant.Project.initProperties(Project.java:308)
> >     at org.apache.tools.ant.Project.init(Project.java:295)
> >     at
> >     
> > org.eclipse.ant.internal.ui.model.AntModelProject.init(AntModelProject.java:105)
> >     at
> >     
> > org.eclipse.ant.internal.ui.model.AntModel.initializeProject(AntModel.java:367)
> >     at
> >     
> > org.eclipse.ant.internal.ui.model.AntModel.prepareForFullParse(AntModel.java:341)
> >     at
> >     
> > org.eclipse.ant.internal.ui.model.AntModel.parseDocument(AntModel.java:305)
> >     at
> >     org.eclipse.ant.internal.ui.model.AntModel.reconcile(AntModel.java:263)
> >     at
> >     
> > org.eclipse.ant.internal.ui.model.AntModel.updateMarkers(AntModel.java:1546)
> >     at
> >     org.eclipse.ant.internal.ui.editor.AntEditor.doSave(AntEditor.java:1178)
> >
> > [...]

> This was actually a bug I wanted to fix with 3.2.2-4. It is fixed on
> amd64. I tried that. But I can reproduce the bug on i386. The fix seems
> to be in. I need to investigate that more...

DISCLAIMER: I'm running ubuntu 7.10

Any new info on the issue?  (I'm not sure it's i386 specific?)

Adding ant-launcher.jar to plugins/org.apache.ant_1.6.5/META-INF/MANIFEST.MF 
allowed me to launch (default) ant tasks.  (basically following 
debian/patches/eclipse-ant-manifest.dpatch)

That still left me with the problem that eclipse couldn't generally 
parse ant build.xml files.

After poking around for some time I just threw up my hands and
created a "combined" jar file with the contents of both ant.jar
and ant-launcher.jar and used it in place of the (symlink)
/usr/lib/eclipse/plugins/org.apache.ant_1.6.5/lib/ant.jar

Eclipse seems to be behaving perfectly fine now.


After my adventures I'm wondering if it would make sense to:
) Update to eclipse 3.3
) Upgrade the eclipse plugin to a version specifically for (ant) 1.7
) Make an ant 1.6 package available for packages that require it.
        (such as eclipse)

Bob Black



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to