I am trying to debug a java app using Visual VM in Eclipse kepler. I am executing the class having main method selecting Visual VM as launcher. I have configured Visual VM as per the instructions given in http://blog.idrsolutions.com/2013/05/setting-up-visualvm-in-under-5-minutes. I am getting the following error:
An internal error occurred during: “Launching TestNew”.
java.lang.NullPointerException
“TestNew” is the name of the class with main method I am trying to execute.
please help.
I had the same issue... Let me expand a bit on Anushree's comment:
Happy profiling...
BTW: If you then have issues getting your application to show up inside jVisualVM, take a look here: Getting Java program running in Eclipse to show up in VisualVM
For Linux users :
whereis visualvm
visualvm: /usr/bin/visualvm /etc/visualvm /usr/share/visualvm /usr/share/man/man1/visualvm.1.gz
In eclipse go to Window --> Preferences --> Run/Debug --> Launching --> VisualVM Configuration
copy the value "/usr/bin/visualvm" in the space and click on apply & close.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With