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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,727
    Likes Received:
    77
    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
     
  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:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    There's an existing thread on this topic at:

    Minecraft

    Thank you.
     
Loading...

Share This Page