mercredi 6 janvier 2016

Get Class by its filepath

Is it also possible to get a class by its name and path, if this class is not in my project? I want to get the class with a path like: C:\Users\USER\Documents\WorkSpace\PROJECT\src\main\java\de\classes\myClass.java

I only found a way to get a class by its name and packagestructue like in this question:

How to get the list of all attributes of a Java object using BeanUtils introspection?





Aucun commentaire:

Enregistrer un commentaire