Creating jarFile to use Instrumentation for calculating Memory usage of an object in Eclipse

你说的曾经没有我的故事 提交于 2020-01-03 02:01:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!