JDK environment variable configuration in Linux and linuxjdk environment variable

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.