The role of the Java Basic Class library package

Source: Internet
Author: User
Tags bootstrap classes

Tools.jar: Tool library, it has nothing to do with the underlying class library used in our program.

The JRE library contains jar files (jdk1.6): Resources.jar, Rt.jar, Jsse.jar, Jce.jar, Charsets.jar, Dnsns.jar, Localedata.jar A total of 10 jar files, where Resource.jar is a resource bundle (picture, properties file); Rt.jar is a run-time package

java.*, javax.* bag, org.* pack :

1, as part of the API public interface of J2SE, operating system-independent can be run on all Java platforms;

2, different JDK version will remain compatible will not easily change, provide API documentation and source code (SRC.ZIP).

sun.* Package :

1, not part of the API expose interface, the program that calls the Sun package does not ensure that all Java platforms are working, and that implementations in different operating systems may not be the same.

2, different JDK version of the Sun package classes may also change irregularly, so the class in the sun.* package does not provide API documentation and source code.

1. Rt.jar
Rt.jar defaults to the bootstrap classes (the RunTime classes that comprise the Java platform's core API) in root ClassLoader's loading path.

2. Tools.jar

Tools.jar is used when the system compiles a class, that is, when the javac is executed.

Javac Xxx.java

is actually running

Java-calsspath=%java_home%\lib\tools.jar Xx.xxx.Main Xxx.java

Javac is the encapsulation of the above command, so Tools.jar doesn't have to be added to Classpath.

3. Dt.jar
Dt.jar is a class library of operating environments, mainly swing's packages that are best added when used with swing.

4.sunjce_provider.jar Encryption and decryption

5.charsets.jar--Character conversion classes.

6.localedata.jar--Locale data for java.text and Java.util.

7.jce.jar was also added and decrypted.

The role of the Java Basic Class library package

Related Article

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.