简体   繁体   中英

Java compiler tree API - how do I set it up?

I wish to use the Java compiler tree in Eclipse. I have come across the API itself on the Oracle web site here , however I cannot find the JAR file for the library. Am I missing something?!

Use:

com.sun.source.tree.*
com.sun.source.util.*

The above packages can be found in tools.jar. Please add tools.jar to classpath. You can find tools.jar in <JDK_HOME>/lib folder. Also, you can extract src.zip and find the related API source files there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM