# io.github.libtmux.SessionCreation

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/e848ba443ba2a5d2128ea0dfa92918c2379e540d/libtmux/src/main/java/io/github/libtmux/SessionCreation.java#L8
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-sessioncreation-sessioncreation/

Assembles the pieces {@link Server#newSession(SessionSpec)} needs before tmux has a session yet.

## Members

### Other members

- [`failureMessage`](/en/java/latest/reference/io-github-libtmux-sessioncreation-sessioncreation-failuremessage/) (method): tmux exits 0 even when nothing was created: an explicit {@code -S} under a directory that does not exist prints its own {@code error creating ...} and still returns success, and a binary that is not tmux at all can exit 0 with nothing on stdout the same way {@code run} cannot tell apart from a real session id. Reads tmux's own words when it spoke and names the configured binary when it did not, rather than letting an empty list reach {@code SessionId} and throw an unchecked collection exception with neither in it.
