I am trying to start an app inside Intellij 2020.2 and YourKit 2020.7-b369, but the app crashes (fails to start) with the following error:
Error running Tomcat Server. Exception occurred : java.lang.ClassCastException Exception message : class com.yourkit.idea14_1Plugin.MyRunner cannot be cast to class com.intellij.execution.runners.JvmPatchableProgramRunner (com.yourkit.idea14_1Plugin.MyRunner is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @3abcf89b; com.intellij.execution.runners.JvmPatchableProgramRunner is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @105b10b6)
YourKit and Intellij run Java 11, the Tomcat will start with Java 8.
Any ideas would be very appreciated.