How do a I open a .jar on my VPS?

Posted November 20, 2013 3.7k views
I downloaded a .jar and every time I go to open it requests that I select an application to run it on.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
According to Wikipedia, .jar is a Java ARchive file. Do you have Java installed on your droplet?
nope, let me rephrase the question now I understand it better...
How do I install java on my unbuntu desktop linux vps?

I know I have to type some stuff in terminal but not sure on what I type.