title: How to install java on a server managed by Cpanel?
body: <p>I am trying to get java installed on a server that I am running. I rented a server and domain from lithium hosting and I am trying to create a site on there that will be used to search files via solr. I am accessing the file system of the server through SSH on my Mac. I have install solr using wget and everything worked fine. However, I can not get java installed which is mandatory for solr to work. I have tried installed it using sudo, apt-get, yum and root@centos and all of those just return an error that those commands don't exist. I am able to download the appropriate tar.gz file using wget. but an error occurs whenever I try to run the command</p>
  
  <pre><code>tar xxx-xxx-xx.tar.gz
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>gzip: stdin: not in gzip format
  tar: Child returned status 1
  tar: Error is not recoverable: exiting now
  </code></pre>
  
  <p>The server is managed with a Cpanel account. How can I get java downloaded to the server. I need it for solr. Thanks </p>