My code runs inside a JAR file and I need to get the full path of that file.
For example, my JAR is called example.jar and is located at D:\example\
So I need to get "D:\example\example.jar" by some code inside that jar.
I have tried many methods to get that path, but none of them worked correctly.
One of them is
I just have created a new workspace and moved every project into it and everything works fine now, I think it was a bug or something...Thank you all for your help!