Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Running jar file on server?

Discussion in 'General Discussion' started by Fawkes, Apr 14, 2018.

  1. Fawkes

    Fawkes Registered

    Joined:
    Apr 14, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States of America
    cPanel Access Level:
    Root Administrator
    Hello! I am trying to run a Minecraft server off of cPanel, but am having trouble running the minecraft_server.jar, it returning "java: command not found." Has anyone else been able to run jar files? I have installed Java 1.8.0 OpenJDK.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,792
    Likes Received:
    83
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    The above message is pretty much clear the java executable is not found or the application is not able to find it. What is the output of the below command on your server?

    #which java
    #java --version
    OR #java -version
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Fawkes

    Fawkes Registered

    Joined:
    Apr 14, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States of America
    cPanel Access Level:
    Root Administrator
    which java: (returns nothing)
    java --version: java: command not found
    java -version: java: command not found

    Adding # before the commands make it return nothing.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    There's an existing thread on this topic at:

    Minecraft

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice