My goal is to add some source code to existing class using annotations.
First, I create an annotation and then I implemented a
After that I create the
javax.annotation.processing.Processor file and I generate the JAR file using the export eclipse option.
When I use my jar in other project I have the following error:
Internal compiler error: java.lang.NoClassDefFoundError: com/sun/source/util/Trees at org.xxx.preprocessor.ActionProcessor.init(ActionProcessor.java:44)
And the mentioned line is like the joined picture:
I want to use tree in order to get the compilation unit and add some code to my annotated function.
So in the first time I don't know how to fix this problem, or another way to do this.