Sunday, October 28, 2007

Eclipse TPTP + Gutsy Gibbon = love?

1) Fixing the "Error occurred during initialization of VM" error when trying to profile with TPTP

If you get this error:

Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory: piAgent

Then install libstdc++2.10-glibc2.2 ( apt-get install libstdc++2.10-glibc2.2 )

2) Fixing the "FATAL ERROR: JVMPI, an experimental interface, is no longer supported." error when trying to profile with TPTP

If you get this error:
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@sun.com
Could not resolve to JVMPI interface
Error occurred during initialization of VM
-Xrun library failed to init: piAgent

then
a) install Java 1.5 (separately from your Java 1.6 install)
b) go to Eclipse and Go to Window > Preferences > Agent Controller > Integrated Agent Controller. Click on the Environment tab. Change the path of the Java executable to Java 1.5.
c) Right click on your Eclipse project > Properties > Java Compiler > Click Enable project specific settings. Select 5.0 from Compiler Compliance Level > Let it rebuild the project.

Reference: http://dev.eclipse.org/newslists/news.eclipse.tptp/msg02475.html

No comments: