This is for an old version but helpful.
e.g. –
Unix: JAVA_HOME=/usr/local/java/jdk1.8.0_13
Windows: JAVA_HOME=C:\j2sdk1.8.2_14
Update the JAVA_HOME variable to point to the location where the JDK is installed. Restart WebSphere Application Server for the changes to take effect.
reference: https://community.microstrategy.com/s/article/KB16159-How-to-change-the-location-of-the-Java-JDK-JAVA-HOME?language=en_US