Answer the question
In order to leave comments, you need to log in
How to fix wrong JAVA_PATH?
Downloaded and anzipped WildFly. I go to the bin directory, I try to execute the script ./standalone.sh
. I get this:
JBoss Bootstrap Environment
JBOSS_HOME: /home/slandshow/Java_Kit/wildfly-14.0.1.Final
JAVA: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java/bin/java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
./standalone.sh: 1: eval: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java/bin/java: not found
Answer the question
In order to leave comments, you need to log in
Understood.
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question