Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Launch Acrobat Reader with Runtime.exec() under WINNT4, without absolut pat

843798May 27 2002 — edited Jul 22 2002
Hi,

I would like to launch Acrobat Reader from a Swing application. This works fine with Runtime.exec() as long as I provide the full path to the AcroRd32.exe. The problem is that I cannot predict the location of this exe on the systems of the users. Athough is in the Windows PATH, since I can launch from the windows execute-dialog, the Runtime.exec() is not able to locate the file.

How can I solve this problem?

Thanks a lot!

Horst
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2002
Added on May 27 2002
4 comments
140 views