lundi 30 novembre 2015

How to get absolute physical path of .java file?

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