由买买提看人间百态

topics

全部话题 - 话题: qtplayer
(共0页)
a***a
发帖数: 161
1
来自主题: Java版 - Runtime.exec() 问题
sorry for not input chinese, but this is REALLY an INTERESTING problem!
in my code I want to use Runtime().exec() to start
QuickTimePlayer and wait until quicktimeplayer is terminated
by the user, as shown below. The thing is, p.waitFor()
should return AFTER the quicktimeplayer quits; however, I
found that if there is already some instances of qtplayer
running, p.waitFor() will return immediately, and
p.exitValue() gets 0-success. I wonder if there is some
tricks that can deal with this situatio
(共0页)