SyntaxFix
Write A Post
Hire A Developer
Questions
The complete first argument of exec is being interpreted as the executable. Use
exec
p = rt.exec(new String[] {"winrar.exe", "x", "h:\\myjar.jar", "*.*", "h:\\new" } null, dir);