JDK official:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
My download path:
~/downloads/jdk-8u101-linux-x64. tar. gz
Extract:
cd/usr/libsudotar xzf ~/downloads/jdk-8u101-linux-x64. tar. gz
To configure environment variables:
Vim ~/.profile
Added/modified at the end of profile:
Java_home=/usr/lib/jdk1. 8 . 0_101classpath=.:/ Usr/lib/jdk1. 8. 0_101/lib/tools.jar:/usr/lib/jdk1. 8. 0_101/lib/Dt.jarpath= $JAVA _home/bin: $HOME/bin: $HOME/.local/bin: $PATH
The Tools.jar in Classpath mainly includes tools such as Javac (compiling. java to. Class), Javadoc (Generating API documents in HTML format according to Java source files), JAVAP (Disassembly. class files), etc.
The Dt.jar contains icons and beaninfo.class for the controls on swing.
Wikipedia's description of BeanInfo: This interface allows the designer to specify information about the events, methods and properties of a Bean.
(This interface enables designers to specify the events, methods, and properties of a bean.) )
"The correspondence between BeanInfo and JavaBean is established by the canonical naming of the two: the BeanInfo of the corresponding JavaBean uses the following naming conventions: <bean>beaninfo. When JavaBean is registered with the same component as its property editor in the IDE, when JavaBean is customized in the development interface, the IDE will find the corresponding BeanInfo according to the JavaBean specification. The JavaBean attribute description (whether open, which property editor is used) is found based on the descriptive information in BeanInfo, and a specific development editing interface is generated for JavaBean. "--Do you know dt.jar?
Update variables:
SOURCE ~/.profile
Linux under the JDK environment variable configuration