They are included with the Java installation, and the compiler knows where they are.
I understand that they are included with java installation, but how do compiler finds these classes ? How is classpath set for these packages ? Can I see them in environment variables ? If not, then how is classpath set ?
They line inside a file called rt.jar (I think) and the compiler is programmed to look there
So, is rt.jar set in some classpath ? When compiler starts looking for some classes it will look in environment variables. So is this rt.jar set in any environment variable ? If compiler does not find classpath in environment variables, does it look for anywhere else ? If no, then how is rt.jar set to be made available to compiler ?
Thanks