I am installing java to my Linux machine. Downloading the jre and jdk and extracting them did not help only – I assume some environmental variables are also needed. What all path variables are needed to be set? With which values? Expecting the java installs itself to <installation-dir>?
I am installing java to my Linux machine. Downloading the jre and jdk and
Share
Depending on your distribution it may be easiest to install from your package manager. On Ubuntu, for example, you can do:
Otherwise, usually the sun (oracle) version of java comes with a .bin file which you need to make executable and run as root in order to get java properly installed.
You shouldn’t need to set any environment variables to get java to work, although some applications will require you to set JAVA_HOME, JDK_HOME and/or JRE_HOME to point to the java install’s bin directory. You can see where your java install is by looking at where the symlink from
points.