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

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

What is the necessity of rt.jar ??

9条回答
  •  醉话见心
    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.

提交回复
热议问题