Why do we use rt.jar in a java project?

前端 未结 9 1875
南方客
南方客 2020-12-12 14:32

What is the necessity of rt.jar ??

相关标签:
9条回答
  • 2020-12-12 15:04

    The runtime (rt.jar) holds all the (most of the..) java classes that form the Java SE. It is added to the classpath automatically.

    0 讨论(0)
  • 2020-12-12 15:05

    rt = Run Time

    It contains all the java runtime libraries. (Essential)

    0 讨论(0)
  • 2020-12-12 15:10

    The rt.jar is where all the java packages reside. For example, if a class file calls for the java.util package, then the JVM can look for it inside the rt.jar, thus enabling it to run correctly.

    On a side note: Don't mess around with it.

    0 讨论(0)
提交回复
热议问题