Could not resolve to JVMPI interface
The above error from Eclipse appears when you try to profile an application using TPTP. The whole text looks like this:
FATAL ERROR: JVMPI, an experimental interface, is no longer supported. Please use the supported interface: the JVM Tool Interface (JVM TI). For information on temporary workarounds contact: jvmpi_eol@xxxxxxx Error occurred during initialization of VM -Xrun library failed to init: piAgentIn my opinion, it is a great example of completely cryptic message. Have I done something wrong? Or have I missed something?
Fortunately, the workaround is quite simple:
Go to Window > Preferences > Agent Controller > Integrated Agent Controller.
Click on the Environment tab.
Change the path of the Java executable to Java 1.4 or 5.
Thanks Ali, now it works!
2 Comments:
Thanks for the Tip Rado!
Unfortunately it is not so simple for windows users. See
http://fiehnlab.ucdavis.edu/staff/kind/Collector/Programming/
(JAVA 1.6 (Mustang) and the Eclipse 3.2 profiler (TPTP workbench))
and
http://dev.eclipse.org/newslists/news.eclipse.newcomer/msg16185.html
Switching to Eclipse 3.3 worked for me.
It works if you choose profile as eclipse application from the green profiler button. Otherwise, it keeps showing that error.
Post a Comment
<< Home