Skip to content
Docs Try Aspire
Docs Try

addJavaAppWithJar

Method
📦 CommunityToolkit.Aspire.Hosting.Java v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addJavaAppWithJar(
name: string,
workingDirectory: string,
jarPath: string,
args?: string[]): JavaAppExecutableResource;
}

Signature

method addJavaAppWithJar builder
Adds a Java application to the application model. Executes the executable Java app.
addJavaAppWithJar(
name: string,
workingDirectory: string,
jarPath: string,
args?: string[]): JavaAppExecutableResource
name string
workingDirectory string
jarPath string
args string[] optional
JavaAppExecutableResource

Applies to

This method applies to the following types: