The class sun.tools.jmap.JMap
is not part of standard JRE. This is used by the out of box tools shipped with JDK.
The class sun.tools.jmap.JMap
is in <JAVA_HOME>/lib/tools.jar
. Jars in this folder are used by the tools in <JAVA_HOME>/bin
folder. For example, sun.tools.jmap.JMap
is used by a tool jmap.exe
For your code to compile in Eclipse, include <JAVA_HOME>/lib/tools.jar
in the classpath.