facebook

NoClassDefFoundError for Groovy library class

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #296990 Reply

    mengmvn
    Member

    We installed the Groovy for Eclipse plugin on MyEclipse7.0.1, but seems, even the class is in the class path, the MyEclipse can not resolved it.
    code (2 lines) oneG.groovy

    ant = new AntBuilder()
    ant.echo(“groovy”)

    log:

    Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/tools/ant/input/InputHandler
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at oneG.class$(oneG.groovy)
    at oneG.run(oneG.groovy:1)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1061)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892)
    at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:737)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:720)
    at org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:381)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
    at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1301)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:711)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:163)
    at oneG.main(oneG.groovy)

    The Goovy Libraries is correct. Please let me know how to attached screen shot here[/url]

    #297016 Reply

    support-joy
    Member

    mengmvn,

    Sorry to hear you ran into this issue. Let me clarify that MyEclipse doesn’t support an integrated Groovy support. Now we need to verify how you have added groovy plugin. Can you list the exact steps to add Groovy plug-in. Also, copy and paste your installation details. You can get it from MyEclipse > Installation Summary > Installation Detail.

    I have done research on net and downloaded the zip file from http://groovy.codehaus.org/Eclipse+Plugin#EclipsePlugin-InstallFromZip . If you unzip, this will give you features and plugins. You need to copy paste these to [MyEclipse installation folder]\dropins (if you already have plugins and features under dropins, please copy and paste the contents to the respective folder). Now restart MyEclipse. This should list you Groovy plugin. You can verify the same by going through Help > About MyEclipse Enterprise Workbench > [Plug-in Details].

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: NoClassDefFoundError for Groovy library class

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