Building a Java environment under Red Hat 6.5
A
Install package
650) this.width=650; "title=" wps44b2.tmp "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" wps44b2.tmp "src=" http://s3.51cto.com/wyfs02/M02/87/6F/ Wkiom1ffkdkaecb-aaaueeb4qh8063.jpg "" 212 "height=" 136 "/>
The choice of the installation package is based on your needs and other software environments, such as the extent to which some software versions are not supported by jdk1.7, and Linx and windows are not the same format for the installation package, which are to be considered
This is the use of jdk1.7.
Two
Unzip the installation package to a directory and make a soft link
1. Extract the compression package to the/usr/local/directory, and note the following parameter-C
650) this.width=650; "title=" wps44b3.tmp "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" wps44b3.tmp "src=" http://s3.51cto.com/wyfs02/M02/87/6F/ Wkiom1ffkdoguqtpaaarasnewom545.jpg "" 244 "height="/>
2. In this directory we can make a long jdk, such as a soft link, the advantage is that after you do the operation, you can not need to write a large string of characters, such as the configuration of environment variables
650) this.width=650; "title=" wps44b4.tmp "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" wps44b4.tmp "src=" http://s3.51cto.com/wyfs02/M01/87/6C/ Wkiol1ffkdoxz8jlaaadu5fzceo818.jpg "244" height= "/>"
3. Next, configure the Java environment variables
Vim/etc/profile
650) this.width=650; "title=" wps44b5.tmp "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" wps44b5.tmp "src=" http://s3.51cto.com/wyfs02/M00/87/6C/ Wkiol1ffkdtzh5cmaaar5ufpvtq779.jpg "" 244 "height=" "/>
Add this, specify the directory for Java
Add libraries in Classpath, and then add Lib libraries in Java based on the system
PATH is added after the system's original variable: represents the Add
After that, source/etc/profile the added variable into effect
Can look at the effect
650) this.width=650; "title=" wps44b6.tmp "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" wps44b6.tmp "src=" http://s3.51cto.com/wyfs02/M01/87/6F/ Wkiom1ffkdxs9n3oaaaswtqjp9i547.jpg "" 244 "height="/>
4. After the installation, test if there is no success
650) this.width=650; "title=" wps44b7.tmp "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" wps44b7.tmp "src=" http://s3.51cto.com/wyfs02/M01/87/6C/ Wkiol1ffkdwi-ajeaaacdgidbqm202.jpg "" 244 "height=" "The/>
650) this.width=650; "title=" wps44b8.tmp "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" wps44b8.tmp "src=" http://s3.51cto.com/wyfs02/M00/87/6C/ Wkiol1ffkdbwwyy9aaaq2nkluwe490.jpg "244" height= "Max"/>
Can see these instructions the environment is configured successfully
5. Write a Java applet and test
650) this.width=650; "title=" wps44c9.tmp "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" wps44c9.tmp "src=" http://s3.51cto.com/wyfs02/M01/87/6C/ Wkiol1ffkdbtckx9aaadrm9nnxq011.jpg "" 244 "height=" 124 "/>
650) this.width=650; "title=" wps44ca.tmp "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" wps44ca.tmp "src=" http://s3.51cto.com/wyfs02/M02/87/6F/ Wkiom1ffkdfw0th6aaak1gbfgdy918.jpg "" 244 "height="/>
You can see that it was successful.
Building a Java environment under Red Hat 6.5