Home Java error in one server but not in the other
 I have a function that uses waitFor as a part of processbuilder. This is the specific line that uses it:  if (pr.waitFor(2, TimeUnit.MINUTES)) {  I am running this function in two unix servers that are more or less identical. It successfuly runs in one. However in the other, it gives me this error:  java.lang.NoSuchMethodError: java.lang.Process.waitFor(JLjava/util/concurrent/TimeUnit;)Z  Both unix servers have identical Java -versions and permissions. What else could be lacking in one of the servers that is leading to this problem?