问题
I want to calculate the memory usage of my object with help of instrumentation class. I found the this page as a straightforward instruction but I do not know how create a jar file in eclipse with the following setting. Where should I mention these setting during exporting JAR file in eclipse?
jar -cmf manifest.txt agent.jar mypackage/MyAgent.class
To answer question of @Rodrigo Ribeiro; I try to compile my code through command prompt with command javac MyAgent.java but I got the following errors since I always work with eclipse I do not know how solve this problem.How can I address this pages address?
I tried to solve my problems based on these pages 1, 2 but I could not.
I assume eclipse have this ability but I cannot find it.
来源:https://stackoverflow.com/questions/34778908/creating-jarfile-to-use-instrumentation-for-calculating-memory-usage-of-an-objec