1

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.

enter image description here

Community
  • 1
  • 1
Suri
  • 209
  • 1
  • 4
  • 10
  • Why didn't simply use terminal to create this .jar file using the command `jar -cmf manifest.txt agent.jar mypackage/MyAgent.class`? – Rodrigo Ribeiro Jan 13 '16 at 23:27
  • @Rodrigo Ribeiro my system is windows and I never work with command prompt and when I compile my code I got the those errors which I do not know how to solve I add them to my question context. – Suri Jan 13 '16 at 23:58

0 Answers0