Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing JDK without administrator privileges

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?

like image 893
Sara Avatar asked Jun 05 '12 04:06

Sara


People also ask

Can I download Java JDK without account?

Downloading these releases requires an oracle.com account. If you don't have an oracle.com account you can use the links on the top of this page to learn more about it and register for one for free. For current Java releases, please consult the Oracle Software Download page.

Can JDK be installed without JRE?

And no, you don't need to create your own JRE. Just install the OpenJDK on the client machines and make sure you add the $JAVA_HOME/bin to the system path, just as you had to do with old JREs.

Why is JDK not installing?

If it is not, please try to install x86 (32 bit) JDK. If it is x64 (64 bit) then, try to run with "Run as administrator" option by right clicking it. If it is not working either way, then please check the system log from Control Panel -> Administrative Tools -> Event Viewer and see what is going around on installation.


1 Answers

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
like image 172
Frank Schmitt Avatar answered Sep 22 '22 21:09

Frank Schmitt