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
1.4m articles
1.4m replys
5 comments
57.0k users