Linux under the JDK environment variable configuration

Source: Internet
Author: User

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

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.