1 Reply Latest reply on Jun 27, 2019 1:38 PM by dnovo

    Wildfly 16 - Windows Service

    dnovo

      Hi,

       

      I'm installing wildfly 16.0.0.Final in windows environment.

       

      I used wildfly-16.0.0.Final\docs\contrib\scripts\service to create a windows service.

       

      Changed standalone.conf.bat

       

      set "JAVA_HOME=..\..\java\jdk1.8.0_202"

       

      Wildfly service starts, but when i stop service i'm getting this message on logs:

       

      JAVA_HOME is not set. Unexpected results may occur.

      Set JAVA_HOME to the directory of your local JDK to avoid this message.

      {

          "outcome" => "success",

          "result" => undefined

      }

       

      I'm i missing something?

       

      Thanks in advanced.

        • 1. Re: Wildfly 16 - Windows Service
          dnovo

          After some digging, found out this message came from jboss-cli.bat

           

          JAVA_HOME is not set. Unexpected results may occur.

          Set JAVA_HOME to the directory of your local JDK to avoid this message.

           

          Setting java_home fixed the issue.

           

          set "JAVA_HOME=..\..\java\jdk1.8"