Using custom `main(String[] args)` breaks file reading functions in Windows (e.g. `loadShader()`, `loadImage()`)

I understood it works in you setup once you export the app.
Any idea how to make it work from the Processing environment?