// In windows 95/98
Runtime.getRuntime().exec("start mydoc.pdf"
// In windows NT
Runtime.getRuntime().exec("cmd.exe /c start mydoc.pdf"
Assuming that adobe acrobat is registered to open pdf files (this assumes windows), this should work. In Unix/Linux, you will have to use whatever pdf viewer is installed.d
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.