I have a wso2 identity server and I am trying to restart it on putty, however when I navigate into the bin folder by typing the command cd /usr/lib64/wso2/wso2is/5.11.0/bin and then type sh wso2server.sh to start the server I get the following error:
Error: JAVA_HOME is not defined correctly. CARBON cannot execute /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-2.el8_6.x86_64/bin/java
My error logs also say " Halting JVM "
Previously when starting the server it would run and the moment I closed putty the url would no longer work, now however I am somehow getting a JAVA-HOME error and I am unsure about what I did to cause this.
How would I be able to resolve this error? Any assistance would be greatly appreciated.