- Bootstrap classes and archives are loaded (e.g. rt.jar in the JVM installation). You can configure them with the parameter java -Xbootclasspath
- Extension libraries are loaded. The default location of them is lib/ext in the oracle JVM installation
- Class-archives can also be loaded via classpath. The parameter is -classpath.
“I figured, as long as I’m going to do a book on compilers, I should include a few other chapters on basic techniques ...” Donald E. Knuth, The Art of Computer Programming
Java Classloader
If you start a Java program (e.g. java Main.class) the classloader is responsible to load the needed classes, like you can figure out from the name. For that it searches in the following places:
URL Classloader
With the URL-classloader, you can load additional classes during programm execution. This is for example used by doing hot-deployment on an application server. You cannot load classes already loaded by classpath.
URL Classloader
With the URL-classloader, you can load additional classes during programm execution. This is for example used by doing hot-deployment on an application server. You cannot load classes already loaded by classpath.
Labels:
Java Basics
Abonnieren
Kommentare zum Post
(
Atom
)
Keine Kommentare :
Kommentar veröffentlichen