I recently updated java version of a springboot project from 8 to 11.
Then I navigate to the subproject folder main_project/event_producer, login to PCF, then pushed it to PCF with following command (cf8 push event-producer -m 2G -b java_buildpack -p target\event-producer-2.0.5-SNAPSHOT.jar).
However, the deployed app crashed with error: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gm/cca/kafka/EventProducerApplication has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
This is my first time deploy on PCF. Is there anyway to solve this error?