I have been trying to run docker image of my code in an Amazon EC2 instance but what I got was an error with a message "Unsupported major.minor version 52.0". Therefore, I installed Amazon Corretto 17 in the instance and ran the image again but to no avail, all I got was the same error message again .
So, what I want to know is: how do I elevate the run time java of the instance?
So that I can run my image as it is, without having to build the image with a older version of java.