Home Java error in one server but not in the other
Reply: 0

Java error in one server but not in the other

user636 Published in April 26, 2018, 9:01 pm

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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.337984 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO