I have a problem. I have a absolute path to my package, for example:
c:\java_project\src\com\myclass\mypackage
In this package is present 3 classes: MyClass1, MyClass2, MyClass3
I need load all classes to List
I load all .java file to List, but I don't understand how this classes load
List<URL> fieldURLs=new ArrayList<URL>();
File pathToClasses = null;
pathToClasses = new File(packageName);
File[] files = pathToClasses.listFiles();
Please help me with this problem
Aucun commentaire:
Enregistrer un commentaire