From: Why do we use rt.jar in a java project?
I get that you need rt.jar to be able to use a base class library such as java java.util
.
There is no "rt.jar" in the new java SDK. If I were to have a .class
file compiled from a .java
file that uses a library from the java base class libraries such as java.util
, how would I be able to run it if I can't reference "rt.jar"?
From my understanding when making a runnable jar file you use classpath
to reference other libraries used in the jar. How can I reference the base class libraries when making a jar now that there is no "rt.jar"?