• Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening a file on os x using Runtime's exec method  RSS feed

 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I am trying to open a doc file on my mac using the following snippet




for some reason, nothing happens ... when i run the command in the terminal it works just fine...


thanks
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's much easier to use the Desktop class. If you decide to use Runtime then read this.
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for "beginning". Moving thread.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouter Oet wrote:It's much easier to use the Desktop class. If you decide to use Runtime then read this.


awesome that worked ...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!