Under the folder, the name is jdk.unpkg.ģ. The last path is the location to be decompressed and the package name after decompression. The backslash is used to escape the space, otherwise the execution fails. Pkgutil -expand /Volumes/JDK\ 7\ Update\ 60/JDK\ 7\ Update\ 60.pkg /tmp/jdk.unpkg Unzip the installation package JDK 7 Update 60.pkg into the unpkg package, open the terminal, and enter the following command: My path is: /Volumes/JDK 7 Update 60/JDK 7 Update 60.pkgĢ. Find the path of the installation package, usually the installation package inside the installer, his path needs to get it yourself. The solution is to modify the code of the version after the installation package pkg is decompressed, and then install it in the package. This is due to Apple's, the version of the code is added to the installation package, so the computer version is too high to install. After downloading the installation package, you will be prompted as follows:
Foreword: Because of work reasons, you need to install a lower version of jdk7.