I’m working with a maven project, using vscode and the Extension Pack for Java.
At some point I need to dynamically load a class:
Class<?> clazz = Class.forName('onepackage.TheClassName');
The problem is that the class is not used directly anywhere in the project, so I get a ClassNotFoundException
.
Do you know how could I configure the project for the class to be built and included when I debug the project?