How to import com.sun.javadoc.* in eclipse?

后端 未结 4 990
一生所求
一生所求 2021-01-02 05:35

Importing com.sun.javadoc eclipse report me this error \"The import com.sun.javadoc cannot be roselved\" it seems the package is not installed. Looking at the web sitehttp:/

4条回答
  •  庸人自扰
    2021-01-02 05:45

    What I usually do is, in Eclipse preferences, I define an Installed JRE called "JDK X.Y.Z" and include tools.jar as part of it libraries. Then I change the project preferences to use that JRE "JDK X.Y.Z".

    The other approach is to simply add tools.jar to your project's library or point to it in the project path.

提交回复
热议问题