It's all about the answers!

Ask a question

how to resolve UnsupportedClassVersionError reported when starting QTP adapter for RQM v4.0.1 / v4.0.2

Sunil Kumar R (1.1k13244) | asked Jun 10 '13, 10:03 a.m.
retagged Jun 11 '13, 10:05 a.m. by Max Bridges (24126)
CLM v4.0.1, with QTP adapter web install complete on RQM server install.
QTP v11.0
QTP adapter installed on Win 7 machine, when invoked with rite data in config file, reports the following error:-

java.lang.UnsupportedClassVersionError: com/ibm/rqm/adapter/qtp/configuration/AdapterInvocationUI (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\HP\QuickTestProfessional\bin\java_shared\classes;C:\HP\QuickTestProfessional\bin\java_shared\classes\jasmine.jar
Exception in thread "main" 

Any pointers on resolving this error?

One answer

permanent link
Sunil Kumar R (1.1k13244) | answered Jun 11 '13, 4:36 a.m.
 Looking further.. the error was JVM launch related and the QTP command line launch (launchQTPAdapterConsole.bat) reported an error as below:

"Error occurred during initialization of VM. I could not find agent library jvmhook on the library path, with error: %1 is not a valid Win32 application."

I was able to overcome the error and launch the QTP adapter succesfully using the steps below..

a. Removed the following java path options:
_JAVA_OPTIONS (user also)
IBM_JAVA_OPTIONS (user also)
b. Verified that the cmd line picks java installed (java -version)

snapshot of the QTP adapter console..

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.