ERROR: JVMPI, an experimental interface, is no longer supported.

来源:互联网 发布:创客编程遥控器 编辑:程序博客网 时间:2024/05/18 03:07
FATAL ERROR: JVMPI, an experimental interface, is no longer supported.   
2007-1-8 ??12:21

Click to email this message

 
<p>
A common question on JDK 6 and JVMPI:
<p>
"I have been using <b><i>Place Product Name Here</i></b>
for profiling my J2EE application.
I am recently working on upgrading to Java 1.6.
When I try to launch the tool,
I get the following error:
<br><code><pre>
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
</pre></code>

<p>
Why is this happening?"

<p>
By default JVMPI has been disabled in JDK 6. The new and official interface is
<a href=http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/>JVM TI</a>.
The warnings about the removal of the experimental JVMPI have gone on for many years now, but there are still some older profiling tools that still use it.
You should contact the Company that created the tool, they will likely have a newer
tool that uses JVM TI, or offer you a workaround.

<p>
Also, if you haven't tried the
<a href=http://www.netbeans.org>NetBeans</a> profiler you might want to give that a try, I just used it for the first time last week, it was quite nice.

<p>
If all else fails, please contact: jvmpi_eol@sun.com

<p>
-kto
 
KamalBohra
Posts:1
Registered: 2/7/08
Re: FATAL ERROR: JVMPI, an experimental interface, is no longer supported.   
2008-2-7 ??8:12 (reply 1 of 1)  (In reply to original post )

Click to email this message

 
Hi Guys,

Probably you can remove the '_JAVA_OPTIONS' setting from your environment variables on the Windows OS. This setting is usually created by the install/setup file of the tool installed on your machine. In my case it was the QTP (Quick Test Professional) a testing tool from 'Mercury'.

I used to get this error message when I tried typing 'java -version' or 'java' on the command prompt.

Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:/PROGRA~1/COMMON~1/MERCUR~1/FUNCTI~1/Java/classes;C:/PROGRA~1/COMMON~1/MERCUR~1/FUNCTI~1/Java/classes/jasmine.jar
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
Error: could not load Mercury Interactive support. Please run the setup again.
If the problem persists please contact Mercury's Customer support.
Error occurred during initialization of VM
-Xrun library failed to init: jvmhook

After trying hard with the available information on the websites, I tried removing the '_JAVA_OPTIONS' and 'IBM_JAVA_OPTIONS' entry from the system environment variables. After removing this entry, I tried launching QTP Tool and it was able to launch without any issues and when I typed 'java' or 'java -version' I got the actual expected result.

Hope this would be of immense help for other guys !!

Enjoy coding!!