0
Using the code:
System.getProperty("user.dir")+"\\email\\email.properties"
it picks up from the user
(C:\USUARIO\user\Documents\Netbeans\Projeto\email\email.properties)
but what if it’s in the unit C:\
only?
(C:\Email\email\email.properties)
How do I make for the System.getProperty
get wherever you are?
Return new File(Minhaclasse.class.getProtectionDomain(). getCodeSource(). getLocation(). toURI(). getPath());
– Sorack