I am trying to run Java on Glassfish server (JSP) using Netbeans as the IDE. When I try to run I am getting an error that Glassfish cannot be started with JDK 12 (Default).
When I type "java -version" in terminal, I get JAVA 12 as the installed version
When I check Java version in System Preferences it says I have Java version 8 ...
How do I make Netbeans refer to Java 8 and not to Java 12?
Should I remove Java 12 altogether?