# javaexec

fun javaexec(configuration: JavaExecSpec.() -> Unit): ExecResult

### Deprecated

This method will be removed in Gradle 9.0. Use ExecOperations.javaexec(Action) or ProviderFactory.javaexec(Action) instead.

Executes an external Java process.

This method blocks until the process terminates, with its result being returned.

#### Return

The result of the execution.

#### Parameters

configuration

The block to use to configure the JavaExecSpec.