Monday, August 21, 2006

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: piAgent
In 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:

At 3:14 AM, Anonymous Anonymous said...

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.

 
At 1:23 AM, Anonymous Alexandra N said...

It works if you choose profile as eclipse application from the green profiler button. Otherwise, it keeps showing that error.

 

Post a Comment

<< Home