Setting up wildfly on another machine and when starting it, I get the error /etc/alternatives/java/bin/java: not found. Java is installed. and it's in that folder
root@mobile-bkend:/opt/wildfly-23.0.1.Final/bin# ./startup.sh root@mobile-bkend:/opt/wildfly-23.0.1.Final/bin# =========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/wildfly-23.0.1.Final
JAVA: /etc/alternatives/java/bin/java
JAVA_OPTS: -server -Xms1024m -Xmx2048m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=2048m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
/opt/wildfly-23.0.1.Final/bin/standalone.sh: 1: eval: /etc/alternatives/java/bin/java: not found
I've tried to change the wildfly.conf file, putting the JAVA_HOME, JBOSS and even so I get the same error.