Skip to content

Instantly share code, notes, and snippets.

@rmkane
Last active January 31, 2019 12:39
Show Gist options
  • Save rmkane/996b30c676a84336525f14d2d80eeb4d to your computer and use it in GitHub Desktop.
Save rmkane/996b30c676a84336525f14d2d80eeb4d to your computer and use it in GitHub Desktop.
Java Install Workaround

Extraction

  • Create working JDK directory (C:\JDK in this case)
  • Download latest version of JDK from Oracle (for example jdk-8u201-windows-x64.exe)
  • Download and install 7-Zip (or download 7-Zip portable version if you are not administrator)
  • With 7-Zip extract all the files from jdk-XuXX-windows-x64.exe into the directory C:\JDK
  • Execute the following commands in cmd.exe:
    • cd C:\JDK\.rsrc\1033\JAVA_CAB10
    • extrac32 111
  • Unpack C:\JDK\.rsrc\1033\JAVA_CAB10\tools.zip with 7-zip
  • Execute the following commands in cmd.exe:
  • cd C:\JDK\.rsrc\1033\JAVA_CAB10\tools\
  • for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar" (this will convert all .pack files into .jar files)
  • Copy all contents of C:\JDK\.rsrc\1033\JAVA_CAB10\tools where you want your JDK to be
  • Setup JAVA_HOME and PATH manually to point to your JDK dir and its BIN subdirectory.

Configuration

Add the following line after in the eclipse.ini file:

-vm
C:\Program Files\Java\jdk1.8\bin\javaw.exe

Make sure you have add the above lines separately and above the following line:

--launcher.appendVmargs
-vmargs

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment