S
S
Sland Show2018-10-05 17:56:06
Java
Sland Show, 2018-10-05 17:56:06

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


I don't understand what's the problem here? It seems that my path to java is set incorrectly. But I decided to look at this path and this directory exists. How to fix this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sland Show, 2018-10-05
@SlandShow

Understood.

JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH

D
Dmitry, 2018-10-05
@AGGRESSOR7

/bin/java At the end is duplicated

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question