Shell, JVM, and SSH command execution on Linux, MacOS, or Windows for Java 11+ and Kotlin
Go to file
nathan 6c3ac14c59 Changed ProcessStreamProxy to have an optional dependency on the Console
project (instead of a hard-dependency). If the Console project is not
 available, then certain behavior is not possible, but that behavior is
 not necessary (just useful)
2017-12-02 15:54:32 +01:00
src/dorkbox/executor Changed ProcessStreamProxy to have an optional dependency on the Console 2017-12-02 15:54:32 +01:00
LICENSE Updated license info 2017-11-28 21:10:38 +01:00
LICENSE.Apachev2 Moved shell executor from utils to it's own project 2017-11-26 21:57:25 +01:00
README.md Updated readme info and version 2017-11-28 21:25:15 +01:00
ShellExecutor.iml Moved shell executor from utils to it's own project 2017-11-26 21:57:25 +01:00

Shell Executor

Shell and JVM command execution on Linux, MacOS, or Windows for Java 6+.

Ironically, there are a considerable number of 'gotchas' when launching shell/JVM processes via Java. This library solves problems with:

  1. Redirecting in/out/err streams correctly
  2. Enabling single-character input
  3. Correctly reading out/err process output streams to prevent memory issues.
  • This is for cross-platform use, specifically - linux 32/64, mac 32/64, and windows 32/64. Java 6+

   

Release Notes

Maven Info

<dependencies>
    ...
    <dependency>
      <groupId>com.dorkbox</groupId>
      <artifactId>ShellExecutor</artifactId>
      <version>1.0</version>
    </dependency>
</dependencies>

Or if you don't want to use Maven, you can access the files directly here:
https://oss.sonatype.org/content/repositories/releases/com/dorkbox/ShellExecutor/
https://oss.sonatype.org/content/repositories/releases/com/dorkbox/Console/

https://repo1.maven.org/maven2/net/java/dev/jna/jna/
https://repo1.maven.org/maven2/net/java/dev/jna/jna-platform/
https://repo1.maven.org/maven2/org/slf4j/slf4j-api/

License

This project is © 2010 dorkbox llc, and is distributed under the terms of the Apache v2.0 License. See file "LICENSE" for further references.