Update Java JRE

I need to update the Java JRE used for Data Analytics within my server. It is installed in the following path: /opt/couchbase/lib/cbas/runtime/

What would be the best way to upgrade its Java 11 to the latest version?

Follow the instructions at the “initialize a node” link on this page

I am not looking forward to initialize a new node though, but rather upgrade the version supplied by Couchbase as default JRE.
The node was added with via the Add a Node method which does not give any option to specify Java.

Can I edit the Java Path via the UI? Install a newer version on Java in the default path Couchbase is using?

Would it not work to replace the JRE installed at the Java Runtime Path?