Sure. Install it* in a known place when first downloading,
using the JNLP installer element. Make a note of the
path to where it is installed, and store that using the
PersistenceService (PS).
Call the .exe (or .so, as appropriate) at runtime,
with the path retrieved from the PS, using the
Runtime.exec() method to get a Process.
* For extra points, ask the user at installation if they
have a default ..PDF viewer, whatever.. and simply
allow them to browse to the one already installed,
rather than download and install the one from the
site. Then just store that 'browsed' path to the PS
and proceed as above.
But can i find out whether that particular exe is already running on the client machine. e.g. in taskmanager.
If not then search the exe file in the particular path on the client machine.
1. If exe already there then execute
2. if exe is not there then download the exe and execute.
Thanks