Java search class file order

xiaoxiao2021-03-06  40

In JDK 1.2, there are three search paths for finding classes: 1) The first location of the Java search class is the bootstrap path. The value of the path can be checked by calling System.GetProperty ("Sun.Boot.class.Path"). Note that the prefix "Sun." Shows at least until now, this property is a SUN implementation. 2) The second location of the Java lookup class is the expansion directory. You can check the directory list by calling System.GetProperty ("java.ext.dirs"). 3) The third location of the Java lookup class is the application class path. The value of the path can be checked by calling System.GetProperty ("java.class.path"). -Cp or -classpath affects it

转载请注明原文地址:https://www.9cbs.com/read-78802.html

New Post(0)