If you see an error such as
java.lang.UnsupportedClassVersionError: play/runsupport/classloader/ApplicationClassLoaderProvider: Unsupported major.minor version 52.0.
This issue arises when users attempt to run a Java Virtual Machine (JVM) application on an older version of the JDK that has been compiled using a newer version of JDK.
To determine the Java version on Heroku, execute the following command:
heroku run java -version. Ensure that you are using the appropriate JDK version by configuring it within the 'system.properties' file, and make sure this file is committed to your Git repository.
You would need to ensure that the JVM app is compiled with the same or an older version of the JDK than the version it is running on.