{"id":54461,"library":"commons-exec","title":"Apache Commons Exec","description":"Apache Commons Exec is a library that reliably executes external processes from within the JVM.","status":"active","version":"1.6.0","language":"java","source_language":null,"source_url":"https://gitbox.apache.org/repos/asf/commons-exec","tags":["process","execution","external","command","utility"],"install":[{"cmd":"<dependency>\n  <groupId>org.apache.commons</groupId>\n  <artifactId>commons-exec</artifactId>\n  <version>1.6.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.apache.commons:commons-exec:1.6.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"CommandLine","correct":"org.apache.commons.exec.CommandLine"}],"quickstart":{"code":"import org.apache.commons.exec.CommandLine;\nimport org.apache.commons.exec.DefaultExecutor;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        CommandLine cmdLine = new CommandLine(\"ls\");\n        cmdLine.addArgument(\"-l\");\n        DefaultExecutor executor = new DefaultExecutor();\n        int exitValue = executor.execute(cmdLine);\n        System.out.println(\"Exit value: \" + exitValue);\n    }\n}","lang":"java","description":"Executes an external command (ls -l) and prints the exit value."},"warnings":[],"env_vars":null,"search_vec":"'apach':1,4 'command':22 'common':2,5 'exec':3,6 'execut':12,20 'extern':13,21 'jvm':18 'librari':9 'process':14,19 'reliabl':11 'util':23 'within':16","created_at":"2026-06-15T09:08:11.080239+00:00","updated_at":"2026-06-15T09:08:11.080239+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://commons.apache.org/proper/commons-exec/","github":null,"docs":"https://appdoc.app/artifact/org.apache.commons/commons-exec/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}