JDK environment variable configuration in Linux and linuxjdk environment variable
JDK official:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
My download path:
~/Downloads/jdk-8u101-linux-x64.tar.gz
Decompress:
cd /usr/libsudo tar xzf ~/Downloads/jdk-8u101-linux-x64.tar.gz
Configure environment variables:
vim ~/.profile
Add/modify 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
Tools in CLASSPATH. jar mainly contains some tools, such as javac. compile java. class), javadoc (generate API documents in html format based on java source files), javap (disassembly. class files;
Dt. jar contains the icons corresponding to the swing control and BeanInfo. class,
Description of BeanInfo in wikipedia: This interface allows the designer to specify information about the events, methods and properties of a Bean.
(This interface allows the designer to specify the events, methods, and attributes of a Bean .)
"The correspondence between BeanInfo and JavaBean is established through the standardized naming of the two: BeanInfo corresponding to the JavaBean adopts the following naming rules: <Bean> BeanInfo. After a JavaBean file is registered with the IDE together with the same component of its property editor, the IDE will find the corresponding BeanInfo according to the JavaBean specification when the JavaBean file is customized in the development interface, then, based on the description in BeanInfo, find the JavaBean attribute description (whether to enable or use the Attribute Editor) and generate a specific development and editing interface for the JavaBean." -- Do you know about dt. jar?
Update variable:
source ~/.profile