I have a Java application I have to optimise, and is almost complete. This application must run on all platforms, no matter the location. On windows in particular, the application is run via CMD.

The application works with MySQL Databases and pulls the URL, username and password from an ini file.

How can I read from this file, no matter the OS and no matter the location of the application?

Thanks in advance.