# io.github.libtmux.ServerLaunch.Builder.root

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/4d77001ac74cd9b7f66d1a56319a97ff6e0b2cd5/libtmux/src/main/java/io/github/libtmux/ServerLaunch.java#L86
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-serverlaunch-serverlaunch-builder-root/

```
public Builder root(Path root)
```

Sets the directory servers make their own directory under, {@code /tmp/libtmux-java-dev} by default. Keep it short: a socket path longer than the platform's {@code sun_path} does not work.

A server whose JVM was killed before it could close is ended by the next start under
the same root, which only ever touches a directory whose owner is gone.

## Parameters

- `root` (`Path`)
