"Unsupported major.minor version 52.0" error on trying to install BusinessConnect hotfix
book
Article ID: KB0078254
calendar_today
Updated On:
Products
Versions
TIBCO BusinessConnect
7.0
Description
On trying to install BusinessConnect 7.0 Hotfix X in an environment having a previous successfully installed hotfix, the following error occurs: <<< java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.tibco.installer.util.TIBCOUniversalInstallerAction.executeWizardAction(TIBCOUniversalInstallerAction.java:205) at com.tibco.installer.wizard.action.TIBCOProductAssemblyReference.run(TIBCOProductAssemblyReference.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.tibco.installer.util.TIBCOUniversalInstallerAction.executeWizardAction(TIBCOUniversalInstallerAction.java:478) at com.tibco.installer.wizard.action.TIBCORunInstaller._executeWizardAction(TIBCORunInstaller.java:289) at com.tibco.installer.wizard.action.TIBCORunInstaller._runSequence(TIBCORunInstaller.java:164) at com.tibco.installer.wizard.action.TIBCORunInstaller._runInstallSequences(TIBCORunInstaller.java:95) at com.tibco.installer.wizard.action.TIBCORunInstaller.run(TIBCORunInstaller.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.tibco.installer.util.TIBCOUniversalInstallerAction.executeWizardAction(TIBCOUniversalInstallerAction.java:557) at com.tibco.installer.wizard.action.TIBCORunWizardAction.execute(TIBCORunWizardAction.java:26) at com.installshield.wizard.StandardWizardListener.execute(Unknown Source) at com.installshield.wizard.StandardWizardListener.currentBeanChanged(Unknown Source) at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1829) Caused by: java.lang.UnsupportedClassVersionError: com/tibco/installer/product/bc_core_libs/TIBCOCheckPreviousVersionWizardAction : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at com.tibco.installer.wizard.action.TIBCORunExternalClassWizardAction.run(TIBCORunExternalClassWizardAction.java:36) ... 24 more >>> The installer has installed the hotfix but with errors.
Issue/Introduction
When trying to install a BusinessConnect hotfix, this error occurs: "Unsupported major.minor version 52.0"
Environment
Linux environment
Resolution
This error occurs because of Java version mismatch <<< Unsupported major.minor version 52.0 >>>
Thus, the 'major.minor version 52.0' error is because the jar was compiled in JDK 1.8, but being run using a JDK 1.7 environment. The reported number is the required number, not the number one is using.
So, in this case one is using UniversalInstaller 3.6.2 which is compiled in JDK 1.7 and the BusinessConnect hotfix was compiled in JDK 1.8. Also the environment one is running it in, has Java 1.8 installed as well.
There are two ways to fix it : 1. Use UniversalInstaller 3.6.4 since it is bundled with JRE1.8. This Universal installer is available in the TIBCO hotfix directory under the UniversalInstaller folder.
or
2. Run the UniversalInstaller by pointing it to Java home 1.8 in your environment like below (in Linux) : <<< The universal installer requires a JVM to run and it must be at least version 1.5.0 or higher. In most cases, the universal installer will detect this JVM if it is installed on the system but if it can not, it will extract it's own bundled JVM to run. One can override all of the searching and extracting of the JVM with this command line argument:
-is:javahome <pathToJavaHome>
The path one specifies should be the location where the /bin folder is located and not actually include the /bin folder. The installer will automatically search that path you specify for the /bin folder and the java executable. >>>
For example : /TIBCOUniversalInstaller-lnx-x86-64.bin -is:javahome /tibco/tibcojre64/1.8.0 -console