the reason why this happens is because when getting the absolute path of the output folder, using File.getName method, which will only return the last name of the file path, i.e. if the output folder is 'target/classes', it will only return 'classes' , in this case the absolute path of the class folder will be wrong.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=2090463
Originator: YES
the reason why this happens is because when getting the absolute path of the output folder, using File.getName method, which will only return the last name of the file path, i.e. if the output folder is 'target/classes', it will only return 'classes' , in this case the absolute path of the class folder will be wrong.