Server won't start



  • Hello to everyone, sorry for the trouble but i need to improve my linux knowledge so
    I have an Raspberry Pi 2 with noobs installed
    Typing on console " type -p java " the response is :

    /usr/bin/java

    Typing on console " java -version " the response is :

    java version "1.8.0"
    Java(TM) SE Runtime Environment (build 1.8.0-b132)
    Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)

    All seem to be right but when i try to start server typing sh -x ./start.sh i get this :

    • USER_LOCATION=/usr/mycontroller/bin
    • dirname ./start.sh
    • ACTUAL_LOCATION=.
    • cd .
    • HEAP_MIN=-Xms8m
    • HEAP_MAX=-Xmx40m
    • JAVA_VERSION=1.7
    • MC_VERSION=0.0.2-alpha6
    • CONF_PROPERTIES_FILE=../conf/mycontroller.properties
    • CONF_LOG_FILE=../conf/logback.xml
    • type -p java
      -p: not found
      java is /usr/bin/java
    • [[ -n ]]
      ./start.sh: 39: ./start.sh: [[: not found
    • echo java is not installed in our machine
      java is not installed in our machine
    • [[ ]]
      ./start.sh: 45: ./start.sh: [[: not found
    • cd /usr/mycontroller/bin

    I will be enjoyed if someone could help me


  • Mod

    Not sure where you got sh -x from but try bash -x instead. The start script requires bash.


  • Plugin Developer

    @bruseisi have you tried with?

    mycontroller/bin/start.sh
    

 

275
Online

8.1k
Users

8.9k
Topics

95.1k
Posts