Installing JDK without administrator privileges

Sara picture Sara · Jun 5, 2012 · Viewed 115k times · Source

I am trying to install JDK at office laptop but it says I need administrator privileges. I have only access to my own account at work.

How can I install the Java Development Kit without administrator rights?

Answer

Frank Schmitt picture Frank Schmitt · Jun 13, 2014

Starting with Java SE 7u21, Oracle offers a so-called Server JRE for download. This is a standard .tar.gz archive that you can extract anywhere on your computer. Although the download is called JRE, it contains a "normal" JDK subdirectory (including the javac compiler etc.).

Instructions:

  • download the "Server JRE" from Java download site
  • extract the .tar.gz
  • add the bin subdirectory to your PATH