shrekwang / object-inspector

用来检测java对象占用内存情况的小工具
16 stars 10 forks source link

Hello,when I run the programme,A error ocur like this,I don't know where to get object-explorer.jar,please help me,thank you . #1

Open iechenyb opened 8 years ago

iechenyb commented 8 years ago

Exception in thread "main" java.lang.ExceptionInInitializerError at com.cyb.mem.test.Test.main(Test.java:10) Caused by: java.lang.IllegalStateException: Instrumentation is not setup properly. You have to pass -javaagent:path/to/object-explorer.jar to the java interpreter at com.cyb.mem.InstrumentationGrabber.checkSetup(InstrumentationGrabber.java:16) at com.cyb.mem.InstrumentationGrabber.instrumentation(InstrumentationGrabber.java:22) at com.cyb.mem.MemoryMeasurer.(MemoryMeasurer.java:7) ... 1 more

PeterGss commented 6 years ago

i meet too, did you solve this problem?

tungmeo commented 5 years ago

Hi, I meet this and I've solved. How do you run your java program, in an IDE or command line?