Get oracle java 1.8 in windows without installing

Is it possible to get java in zip format? I do not want to install it, getting the .exe file.

is there a zip version of java 1.8 so that I can download it and extract it and start using it on my windows machine (64 bit processor)

+6
source share
4 answers

You can extract the JDK folder from the installation EXE.

Check out this link for steps. The message was for JDK 1.7, it will work for JDK 1.8 as well

Do the following.

Steps

  • Download JDK from Oracle
  • Download and install 7-zip from here
  • Open exe exe version with 7-Zip
  • Extract tools.zip
  • Extract the contents of tools.zip to a folder (e.g. c: \ jdk).
  • Open the extracted folder at the cmd command prompt.
  • Run the command for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar"
  • Install JAVA_HOME in the jdk folder (e.g. c: \ jdk).
  • Add %JAVA_HOME%/bin to the env PATH variable.

Testing

Run the following command to verify the installation, it will print the JDK version.

 c:> javac -version javac 1.7.0_51 

NOTE. Tested with JDK 1.7 and 1.8

Update 1

Edited the response to add steps to the response itself, rather than a link to a blog post.

Update 2

For 64-bit code, please unpack-jdk-x64.bat grabantot

+14
source

I was also looking for a solution. I'm not sure why the OP wanted to do this. I am just trying to get a newer version of java for a new development without interfering with the older Java installation that the deprecated application requires (I would like to update the deprecated application, but now this is not an option)

I think the hack that I'm going to try is:

  • Install 1.8
  • Take a copy of the installation folder
  • Delete 1.8
  • Reinstall / Repair 1.7
  • restore copy 1.

I am sure that if I had a better understanding of what the installation does, it will not be needed.

+1
source

If you do not have permission to unzip the zip file, you cannot install java. Since java does not require installation to work. You just need to specify the path to java.exe where it is located.

On Windows, it is located in C: \ Program Files \ Java \ jdk1.8.0_05 \ bin. For the solution, you can run the installer on any computer on which you have permission, and simply copy and paste the java folder to anywhere in your system (on the machine where you have a problem with administrator rights). and just set the path by opening the command line: set path = "C: \ Program Files \ Java \ jdk1.8.0_05 \ bin" java will work the way you want

0
source

The following worked for me (I had JDK 1.8, as well as a 32-bit version):

  • Check current version with java -version
  • Assuming a different version (minor or major is installed), download the appropriate JDK installed from Oracle and run it. in the first dialog box, specify a different folder than the default location (it can work with the default as well), then select "Next". This will extract the files in this folder, then it will be the folder where the JRE should be installed. Just close the installer, now you should only have the JDK in the specified folder.
  • Rerun java -version, it should provide you with the same version as before.
  • In the worst case, if it shows a newer version, go to your system path (right-click My computer (or this computer) → Properties → Advanced system settings → Advanced tab → click Environment Variables) and delete the Oracle entry javapath (from the Path variable at the bottom of the window). Add an older version of the java version of bin in the path variable at the beginning.
0
source

Source: https://habr.com/ru/post/978379/


All Articles