How to install Portable JDK in Windows without Admin rights


Hi, I am Malathi Boggavarapu working at Volvo Group and i live in Gothenburg, Sweden. I have been working on Java since several years and had vast experience and knowledge across various technologies.

Recently i came across the situation where i want to install JDK in the computer without having administrative privileges. Somehow i sought the problem out and want to share the steps that i have followed to do.

Prerequisites
- Download 7-Zip.

Steps to install portable JDK without Administrative Privileges

Step 1
  Download latest version of JDK from Oracle website.

Step 2
  Select the downloaded JDK exe and right click on it. From the right click menu, choose 7-Zip ->     'Open archive'.

Step 3
  After the JDK archive is opened using 7-Zip, inside the folder .rsrc\1033\JAVA_CAB10\111 you        will find tools.zip file.

Step 4
  Extract tools.zip to your desired JDK directory. Ex: C:\Java\JDK

Step 5

 Now open windows command prompt and go to the root of your JDK directory where the tools.zip   directory is extracted. According to our example it should be C:\Java\JDK folder and run the   following command.

for /R %f in (.\*.pack) do @"%cd%\bin\unpack200" -r -v -l "" "%f" "%~pf%~nf.jar"

That's all!!!! Now you have your Portable JDK running on your computer. It is as simple as eating the banana!!!

Hope the information is useful.

Comments

  1. jdk-8u191-windows-i586.exe

    >%JDK_PORTABLE%\bin\javac -version

    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object

    ReplyDelete
  2. Can you please make an unlisted youtube video for this process? Thanks a lot!

    ReplyDelete

Post a Comment

Popular posts from this blog

Bash - Execute Pl/Sql script from Shell script

How to get client Ip Address using Java HttpServletRequest