facebook

Ant problem [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #200639 Reply

    Hi,

    I’m a new user to MyEclipse and I’ve installed it over my existing eclipse installation which I’m already using for 4 months.

    My problem: I’m trying to use ant from the MyEclipse perspective, but when I try to run a task, nothing happens and the log shows the following:

    java.lang.NoClassDefFoundError: org/eclipse/ui/externaltools/internal/core/ToolUtil
    at com.r2tech.eclipse.antview.actions.RunAction.run(RunAction.java:41)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
    at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
    at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
    at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
    at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
    at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
    at org.eclipse.core.launcher.Main.run(Main.java:747)
    at org.eclipse.core.launcher.Main.main(Main.java:583)

    Any idea how I can fix this?

    Regards,
    Wouter de Vaal

    #200643 Reply

    Riyad Kalla
    Member

    Are you able to run Ant fine from the Java Perspective? This seems to be a missing Eclipse component. Also, have you added this ant file to your ant view and are you trying to execute it from there? Can you run the ant script from the command line? What version of Eclipse/MyEclipse are you using? What version of Java? What color is my hair? etc. etc. 🙂

    #200646 Reply

    Scott Anderson
    Participant

    Good questions. 🙂

    One other thing to consider is the stacktrace, particularly the following line:

    
    at com.r2tech.eclipse.antview.actions.RunAction.run(RunAction.java:41)
    

    This is an external plugin (AntView) that isn’t part of MyEclipse and seems to be interfering with your Ant builds. From the error it appears that the version of AntView you’re running isn’t compatible with the version of Eclipse you’re using. I’d suggest shutting down Eclipse and removing the AntView plugin to work around the problem.

    –Scott
    MyEclipse Support

    #200649 Reply

    Ok the last remark was on the spot, I still had an old plugin which was in the way, so to speak.

    Thank you very much,
    Wouter

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Ant problem [Closed]

You must be logged in to post in the forum log in