The Artima Developer Community
Sponsored Link

Java Answers Forum
open a PDF file in linux using Java

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Aparna Nigdikar

Posts: 4
Nickname: aparnan
Registered: Feb, 2008

open a PDF file in linux using Java Posted: Feb 22, 2008 6:28 AM
Reply to this message Reply
Advertisement
How can I open a PDF file in linux using Java. I m able to open PDF file in windows and mac using this command

in windows
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + path_of_pdf);

in mac
Runtime.getRuntime().exec("open " + path_of_pdf);

But there is not any common solution find to work on all the linux. Please Help
thanks

Topic: open a PDF file in linux using Java Previous Topic   Next Topic Topic: Difference

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use