如果用Eclipse, 这个Package一般不是自动添加到path里面的。 需要自己手动添加。因为tools.jar通常是跟随着JDK,而不是JRE的。 所以
right click the project you are working on---> properties--> path --> add external jar --> find tools.jar in your
JDK and add it.
right click the project you are working on---> properties--> path --> add external jar --> find tools.jar in your
JDK and add it.