Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 Env:
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(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
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?

0 votes



One answer

Permanent link
 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)
JAVA_TOOL_OPTIONS
b. Verified that the cmd line picks java installed (java -version)

snapshot of the QTP adapter console..

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,922

Question asked: Jun 10 '13, 10:03 a.m.

Question was seen: 7,010 times

Last updated: Jun 11 '13, 10:05 a.m.

Confirmation Cancel Confirm