Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem on class ProcessBuilder

807580Jun 10 2010 — edited Jun 11 2010
Hi,

I have a bunch of system commands called by a java program using class ProcessBuilder. I got a problem to call "svn checkout". The machine is running on XP. Here is the code

java.lang.ProcessBuilder pb = null;
java.lang.Process p = null;

String svn_checkout = "svn checkout http://server.com/svn/repo";
pb = new ProcessBuilder("cmd.exe", "/C", svn_checkout);
p = pb.start();
...

The problem is: when I checkout a svn work copy from the scratch, i.e., no work copy exists, then the process is very slow. I use Process Explorer to examine the process (svn.exe) then I find the process created by java does not take any CPU resource. It seems that it sits there but not working.

If I checkout a work copy then run the java program then everything is fine. Anybody knows what's the reason? Thanks.

Majere
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 9 2010
Added on Jun 10 2010
3 comments
302 views