• Post Reply Bookmark Topic Watch Topic
  • New Topic

Classloaders  RSS feed

 
jose chiramal
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bootstrap(primordial) : Loads JDK internal classes, java.* packages. (as defined in the sun.boot.class.path
system property, typically loads rt.jar and i18n.jar) QUESTION : what is sun.boot.class.path ???

Extensions : Loads jar files from JDK extensions directory (as defined in the java.ext.dirs system
property – usually lib/ext directory of the JRE) QUESTION : What is jdk extensions directory ??

 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The text you are quoting already answers both your questions... what exactly is unclear to you?

sun.boot.class.path is a system property. You can get system properties inside your Java program by calling System.getProperty(...). You can define system properties on the command line with the -D switch, for example:

java -Dmy.property=hello org.mypackage.MyProgram

The extensions directory is normally the lib/ext directory in your JRE installation folder. Any JAR files that you put in there are automatically picked up by Java (you don't have to put them in the classpath explicitly). Note that it's usually not a good idea to put JAR files in the extensions directory, because they will then be used with all Java programs that you run on your computer - and that's usually not what you want.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!