• Post Reply Bookmark Topic Watch Topic
  • New Topic

ProcessBuilder no results  RSS feed

 
Byeonggon Lee
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It shows nothing.
But when I tried

I gets a reult
Sorry for my English
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37507
552
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Byeong,
Welcome to CodeRanch! Your English is perfectly understandable - don't worry!

The problem is the quotes around vim. Try:


As a bit of explanation, you could run this at the UNIX command line as either of the following.
find / -iname vim
find / -iname "vim"

When calling from Java, each of the arguments is meant to "go together" so you don't put extra quotes around it.

And finally, a Java tip - variables are lower case by convention unless they are constants. Calling your variable "pb" instead of "PB" would make it easier to read for experienced developer.
 
Byeonggon Lee
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your kindness
It worked!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!