Missing Library com.sun.tools.attach

后端 未结 3 1809
[愿得一人]
[愿得一人] 2021-02-05 11:03

I\'ve tried to follow this tutorial, but I have problem with imports.

I got:

The import com.sun.tools cannot be resolved

in line

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-05 12:01

    tools.jar needs to be added to the IDE's library path and the program's classpath. The tools.jar file is found in the JDK's lib directory.

    For example, if the JDK were installed into C:\Program Files\Java\jdk1.7.0_11 then the tools.jar file will be found at C:\Program Files\Java\jdk1.7.0_11\lib\tools.jar.

提交回复
热议问题