Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?!

like image 766
Joeblackdev Avatar asked Jun 26 '11 14:06

Joeblackdev


1 Answers

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.

like image 162
Ratna Dinakar Avatar answered Sep 21 '22 05:09

Ratna Dinakar