In the older version of Java 6, Oracle provides the tar.gz
distribution for their JDK, which can be extracted and run in user home directory without installing to system folder. However, the latest versions of Java are no longer distributed as tar.gz
format for downloading anymore. Does anyone know how to install the bin distribution in user folder without root privilege?
I have tried to extract the bin files but it's not usable since most of the jar files are encrypted (or packaged) in some weird format (.pack), e.g. rt.pack
instead of rt.jar
. I have also tried to use --prefix
in the rpm command line but it requires root permission. They seems to make it impossible to install java in user home directory.