I am not trying to get the working directory or the .class file path, instead I want the path of the code that is running.
something like "C:\Workspace\ProjectName...\src\test\java...\MyFile.java"
This has to be obtained by running MyFile.java
Any ideas?
Aucun commentaire:
Enregistrer un commentaire