OpenJDK 64-Bit Server VM (build 24.80-b07, mixed mode) The compiled virtual machine has the user's machine name in the - version bin]# bin]#. This is the complete compilation result of the entire JDK and copy it to Java_ The home directory can be used as a complete JDK. You can enter "make" to perform the entire OpenJDK compilation (make does not add parameters, and the default compilation is make all)Īfter the compilation is completed, enter the build / J2SDK image directory (or build debug and build fastdebug) under the OpenJDK source code. If you see "Sanity check passed." it means that the check process has passed. The Sanity check process of Makefile outputs all the environment variables required for compilation.
#CENTOS OPENJDK 7 CODE#
If everything goes well, there will be a similar code in a few seconds Make 2>& 1 | tee $ALT_OUTPUTDIR/build.1ogĪfter all the settings are finished, you can enter make sanity to check whether all the settings we have made are correct. #These two environment variables must be removed, or something very strange will happen(I didn't specifically look into these "weird ones."#thing " ,Makefile If the script detects these two variables, it will prompt a warning) unset JAVA_HOME #The path where the compilation results are storedĮxport ALT_OUTPUTDIR=/root/workspace/openjdk/ build #But even if you don't build it, you can get a complete JDK image, so don't build it Because there are some strange dependencies in the installation package, #Setting it to false will not build the installation package. #Set it to false to avoid build ing parts such as javaws and browser Java plug-ins #With precompiled header files, it will be slower to compile without this #If set dev perhaps DEV_ONLY= true ,This is OK without explicit setting #Must be set to false, otherwise sanity check will report an error message that the image of the previous version of JDK is missing. #Compare the image of this build with the previous version. #Set the number of threads in parallel compilation to be consistent with the number of CPU cores
#CENTOS OPENJDK 7 DOWNLOAD#
General allow automatic download dependency Must be setĮxport ALT_BOOTDIR=/usr/local/java/jdk1. Method 1: configure Java in vi /etc/profile file_ Home, path and CLASS_PATHīecause such a setting will take effect on all users' shell s and affect the system security.Įxport JAVA_HOME=/usr/local/softWare/jdk1.6.0_45Įxport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarĮxecute source /etc/profile to make the configuration take effect immediately The configuration of environment variables can be divided into several ways, which can be configured according to your own choice:
#CENTOS OPENJDK 7 INSTALL#
Download jdk-6u45-linux-圆4.bin to install