Java编译器树API - 如何设置它?

Joe*_*dev 8 java compiler-construction api tree

我希望在Eclipse中使用Java编译器树.我在这里找到了Oracle网站上的API本身,但是我找不到该库的JAR文件.我错过了什么吗?!

Rat*_*kar 12

使用:

com.sun.source.tree.*
com.sun.source.util.*
Run Code Online (Sandbox Code Playgroud)

上述包可以在tools.jar中找到.请将tools.jar添加到classpath.您可以在<JDK_HOME>/lib文件夹中找到tools.jar.此外,您可以提取src.zip并在那里找到相关的API源文件.