7.4 Migration Tool getting Unsupported major.minor version error
The hardware/software requirements for 7.4.1 indicate using either Java 7 or 8; however when I try to upgrade to 7.4.1 and run the migration tool using Java 7, I get the below error, which indicates that I need Java 8. Is that correct? That I should really be using Java 8 for 7.4.1?
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/bonitasoft/migration/core/Migration : Unsupported major.minor version 52.0
**
Unsupported major.minor version error is because of Java version mismatch. It happens when you compile your projects on higher version of java(e.g. jdk 1.8) and then run it on a lower version (e.g. jdk 1.7). Depending on your situation, you have two ways to resolve this error: compile your code for an earlier version of Java, or run your code on a newer Java version. Sometimes you may have more than one version of Java SDK installed in your machine. Make sure the application you are running is pointing to the right or highest version available . It is better you need to install both JRE/JDK with the same version.
Comments
Assuming the Migration Tool requires 8 to run. It is the Migration Tool that is getting the error.
What Java do you have installed?
Currently on 1.7.0.65, but we are going to move to 8 anyway, so hoping that will solve the problem once that gets installed.