java - Loading classes from a set of files -


i have task check set of conditions unknown set of classes classpath. want scan classes, load each of them , perform checks. have set of urls class files , try use urlclassloader. load class need specify qualified class name, don't have them (i have file path). don't think building class name class file path relieble, better way it?

thanks!

i'd parse beginning of class file, looking "package" keyword , first occurrence of "class" keyword. then, when combine 2 (packagename + "." + classname), should result in proper class name.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -