I need to open a file with its default system application, wait until closed (if it was modified or not) and then handle the file again.
I know JAVA offers Desktop.open() interface, which opens the file with its default app. Then, it offers Runtime.exec(), which starts a process and returns the reference to it.
Desktop.open()
Runtime.exec()
But I would need an API which provides a combined functionality. I found a topic with 2 non-sufficient answers: Java - Desktop.getDesktop().open() - Wait until file is open?
Can anybody give me any tip or help? Thanks
2.1m questions
2.1m answers
60 comments
57.0k users