work on my local environment. I cannot get it working
C:\Users\customcheck>java -classpath customcheck.jar;checkstyle-8.38-all.jar com.puppycrawl.tools.checkstyle.Main -c config.xml .
com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module TreeWalker - cannot initialize module com.mycompany.checks.MethodLimitCheck - Unable to instantiate com.mycompany.checks.Met
hodLimitCheck
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:482)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:201)
at com.puppycrawl.tools.checkstyle.Main.runCheckstyle(Main.java:404)
at com.puppycrawl.tools.checkstyle.Main.runCli(Main.java:331)
at com.puppycrawl.tools.checkstyle.Main.execute(Main.java:190)
at com.puppycrawl.tools.checkstyle.Main.main(Main.java:125)
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module com.mycompany.checks.MethodLimitCheck - Unable to instantiate com.mycompany.checks.MethodLimitCheck
at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:125)
at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:201)
at com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:477)
... 5 more
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable to instantiate com.mycompany.checks.MethodLimitCheck
at com.puppycrawl.tools.checkstyle.PackageObjectFactory.createObject(PackageObjectFactory.java:370)
at com.puppycrawl.tools.checkstyle.PackageObjectFactory.createModule(PackageObjectFactory.java:198)
at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:116)
... 7 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.puppycrawl.tools.checkstyle.PackageObjectFactory.createObject(PackageObjectFactory.java:367)
... 9 more
Caused by: java.lang.Error: Unresolved compilation problems:
The import com.puppycrawl cannot be resolved
AbstractCheck cannot be resolved to a type
The method getDefaultTokens() of type MethodLimitCheck must override or implement a supertype method
TokenTypes cannot be resolved to a variable
TokenTypes cannot be resolved to a variable
DetailAST cannot be resolved to a type
DetailAST cannot be resolved to a type
TokenTypes cannot be resolved to a variable
TokenTypes cannot be resolved to a variable