#350 Bug build : cannot initialize module TreeWalker

release_4.0
closed
nobody
usage (27)
5
2012-10-10
2005-07-21
Loic33
No

Hello guys,

I tested ur Checkstyle.
My versions are:
- Eclipse Checkstyle Plug-in v4.0.0 beta4b
- Checkstyle 4.0
- Eclipse 3.0.2
- jdk 1.5.0_02

So, i try to doing the tutorial on
"Extending Checkstyle" -> "writing checks" with the
example : MethodLimitCheck
I created the class then the .xml to integrate my check
and to conclude i create a jar.
But when i build the project i have this error:

Build problems
Errors during build.
Errors running builder "CheckstyleBuilder" on project
gestAno.
cannot initialize module TreeWalker - Unable to
instantiate com.mycompany.checks.MethodLimitCheck

I don't know what doing.
Help me

Thx

Discussion

  • Logged In: YES
    user_id=1238882

    Please look here for a short description how to integrate your
    check with the Checkstyle eclipse plugin:
    http://eclipse-cs.sourceforge.net/extending_custom_checks.
    html

    First thing is that the plugin must have your check on its
    classpath.
    Second is that you must use the fully qualified class name of
    your check within your cofiguration, because the plugin has
    currently no mechanism to specify the package.xml
    checkstyle need to resolve symbolic check names.

    Hope this helps a bit...
    If you have further problems integrating your check into the
    plugin please file a support request here:
    http://sourceforge.net/tracker/?group_id=80344&atid=559495

    Regards,
    Lars Kdderitzsch

     
  • Logged In: YES
    user_id=746148

    Hope you guys do not mind that I'm closing this bug, since
    the bug is
    not in checkstyle, but in plugin which is separate prohect.

     
  • Logged In: YES
    user_id=1238882

    I don't think its a bug in the plugin at all.
    Just a case of RTFM (no offense intended).

     
  • Loic33
    Loic33
    2005-07-21

    Logged In: YES
    user_id=1316397

    Yes i resolve the pb into the plugin i had to add the name of
    my jar into the manifest file and place it into the directory
    external-librairies
    Thx ++

     
  • Loic33
    Loic33
    2005-07-21

    Logged In: YES
    user_id=1316397

    Yes i resolve the pb into the plugin i had to add the name of
    my jar into the manifest file and place it into the directory
    external-librairies
    Thx ++