Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java class loader  RSS feed

 
Raj Joe
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
steps
1.I install JDK
2.Set path for bin directory in my env variable
3.Write a simple java class
4.Run the java class with commend (java test.java)

How are JDK classes loaded for test.java(which imports eg java.io.* etc).
How does Java commend recognize the jdk classes.
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassLoader.html
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html [getContextClassLoader method - this forum won't allow the direct link]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!