githubEdit

Setup

Windows

Install JDK and JRE

  1. Download the corresponding installer from oraclearrow-up-right.

  1. Execute Installer to install. Quite easy. Note that the installer will install both the JDK and the corresponding JRE.

Set Path

  1. Update the environment variables PATH. For me I just need to add C:\Program Files\Java\jdk-1.8\bin to my User variable.

Ubuntu

Install JDK and JRE

JDK

  1. Download the corresponding file from oraclearrow-up-right. For Ubuntu users, please download the "Compressed Archive" File.

  1. Uncompress the .tar.gz using command tar zxvf your-name.tar.gz. Then move all the file to a new installation directory if you like. For me, it's /usr/lib/jvm/jdk-1.8-oracle-x64.

JRE

  1. Download the corresponding "Compressed Archive" file from oraclearrow-up-right.

  1. Uncompress the file and move it to the installation directory. For me it's /usr/lib/jvm/jre-1.8-oracle-x64

circle-info

Note that x64 can be replaced to your architecture.

Set Path

  1. Add this line to your ~/.bashrc (Note to change the directory to yours) \

  2. Reload using source ~/.bashrc

References

Last updated