i have binary class want load, don't have it's dependencies. still want load though, it's qualified name.
i understand not able use else (and ok), need qualified name.
so there way custom class loader ?
thanks,
as strictly answering question: see section on symbolic references resolution in jvm specification. in short: little guaranteed when resolution performed. i'm not sure precise behaviour of current implementations, if go way, solution not reliable, though work.
you said need qualified name, though. that's different story, that's pretty easy, in fact. jvm specification describes in detail format of class file. since have binaries, can extract directly data, bypassing classloading mechanism of jvm completely. if don't want hand, use appropriate tools - asm comes mind, wonderful, detailed documentation. alternatives bcel, javassist , cglib (no longer maintained).