• Post Reply Bookmark Topic Watch Topic
  • New Topic

Fail to Use Custom ClassLoader  RSS feed

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote my custom classloader but I have problem asking my class to use it. Here is my test code

It is always the system class loader get used (sun.misc.Launcher$AppClassLoader
) when I load the org.lyl.test.Dummy class? What mistake did I make?
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the Dummy class is on the class path, the system class loader will (almost?) always load it.
 
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!