Search code examples
serverwso2command-promptfindstrwso2-esb

Run .bat file via command propmt


I am trying to start the wso2server.bat for the WSO2 Application Server. This is available inside E:\wso2as-5.3.0\bin. But I am currently encountering this error when running the file from the windows command prompt.

enter image description here

My Environment Variables are as follows.

  • User Variable:

    • PATH: F:\ESB\wso2as-5.3.0\bin
  • System Variable:

    • JAVA_HOME: C:\Program Files (x86)\Java\jdk1.8.0_144
    • Path: F:\ESB\wso2as-5.3.0\bin

I've tried changing the Path Variables but I keep on getting this same error in starting the server.

Any suggestions in this regard will be much appreciated.


Solution

  • Right Click My Compuer -> Advanced -> Environment Variables -> System Variables -> Select Path variable -> append the below value.

    Your user variable should look something like

    F:\ESB\wso2as-5.3.0\bin;C:\WINDOWS\system32
    

    Note: I am assuming you installed your windows in C drive.