Installing JDK without administrator privileges

前端 未结 14 1667
旧时难觅i
旧时难觅i 2020-12-13 00:13

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

相关标签:
14条回答
  • 2020-12-13 01:01

    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

    1. Download the latest version of JDK: You can find it here http://www.oracle.com/technetwork/java/javase/downloads/index.html
    2. Use 7zip tool to extract the executable into a directory. Again extract the inside tools.zip file within.
    3. Goto ..\jre\bin Use SHIFT and Right Click and open Command Prompt.
    4. Type 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
    5. Do this for all the .pack files available in the directory. (Some 6-8 files are there for JDK8u65)
    6. Launch Eclipse, choose a project, click Alt+Enter, click on Build Path
    7. Goto Libraries, 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.
    8. Now choose the directory location of the extracted JDK you performed in step 2, then click FINISH, APPLY then OK

    You must be good to go to run the project without actually installing JDK. Cheers!

    0 讨论(0)
  • 2020-12-13 01:05

    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.

    0 讨论(0)
提交回复
热议问题