Java can interact with the local machine, but this will only work if you are running your application locally in Studio Pro. If you deploy it to the Mendix Cloud it will fail.
What are you trying to achieve? There may be another way to do it.
I need to get file from my local machine by directly clicking on file path URL in my App how to get that?