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 Dev
Nice work by @Lawrence by using Cygwin. Let me show you similar steps without using any external tools.
Installing using utilities at the system without admin rights:
This works on Windows 7 or later on a system without admin rights
tools.zip file within...\jre\bin Use SHIFT and Right Click and open Command Prompt.unpack200 SRC DST. Inplace of SRC: Search *.pack files within the extracted directory, copy paste the directory location of .pack files, Inplace of DST: Use the same path of .pack files, and replace the filename with .jar.pack files available in the directory. (Some 6-8 files are there for JDK8u65)Alt+Enter, click on Build PathLibraries, remove available system JRE if any. Click on Add Library, choose JRE System Library then NEXT, Click Alternate JRE , click on Installed JREs. Click Add, Standard VM then NEXT, choose Directory.FINISH, APPLY then OKYou must be good to go to run the project without actually installing JDK. Cheers!
Maybe a good alternative is to use OpenJDK, here is an unnoficial build for windows, so you can download the Zip file extract to any folder and set the JAVA_HOME for your windows user. I ran Android Studio this way.