Originally published at: http://www.howtogeek.com/191427/how-to-find-out-if-java-is-installed-in-ubuntu-and-how-to-install-it/
By default, Ubuntu does not come with Java (or the Java Runtime Environment, JRE) installed. However, you may need it for some programs or games like Minecraft. We will show you how to quickly and easily check if Java is installed and how to install it.
apt-get upgrade the one that upgrades all programs? I thought
apt-get update did nothing but update the repositories to their latest versions...
Boo hoo. I have Java installed, but thought that I'd run this command to see what comes up.
el_gallo_azul@W2600CR:~$ java –version
Error: Could not find or load main class –version
Yea, I tried that too. I used java-showversion.
I worked it out. I found that
didn't work, so I amended it to
and it worked, so I thought something similar might be wrong with
. I didn't need to enter a space. All I had to do was change the
This topic was automatically closed after 10 days. New replies are no longer allowed.