I have received this warning message about Java:
This TeamCity server is using a deprecated version of Java (8). Please upgrade to Java 11 as future versions of TeamCity will be incompatible with Java 8. Note: at the moment TeamCity does not support Java versions > 11
And have followed the instructions here on how to update it. I have tried changing JAVA_HOME and TEAMCITY_JRE variables in /etc/environment, /etc/profile.d/jdk.sh, the .profile and .bashrc of teamcity and root, used the update-alternatives tool to select correct Java, and have dug into the TC config files and executable logic itself. I found that in the findJava.sh script, the $FJ_JAVA_EXEC and $FJ_JAVA_VERSION show /usr/lib/jvm/jdk-11/bin/java and 11.0.13 respectively, as they should. When I restart TC and go to the interface and reset TC server, I don't see the variables in Administration -> Diagnostics -> Internal Properties as changed and the warning message is still there:
I know there have been questions about this, but I haven't found anything to help this issue. Please let me know what I can do.