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!

How to I use ProcessBuilder to execute a cmd with command

807606Feb 17 2007 — edited Feb 23 2007
Hi,

Anyone know how to use processbuilder to run a jar file? I've tried runtime() but it doesn't work, giving me exitValue = 128. I've checked what does 128 means, it state that there are no child processes. Therefore, I'm trying to switch to processbuilder, but I'm not sure how to do it.

Can someone show me an example?

Your help will be greatly appreciated!

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2007
Added on Feb 17 2007
14 comments
924 views