# JavaAppExecutableResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/csharp/communitytoolkit.aspire.hosting.java.md)
- Type: [JavaAppExecutableResource](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents a Java application.

## JavaAppExecutableResource(string, string, string)

- Name: `Constructor(string, string, string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppExecutableResource.cs#L10)

A resource that represents a Java application.

```csharp
public class JavaAppExecutableResource
{
    public JavaAppExecutableResource(
        string name,
        string command,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `command` (`string`)
  The command to execute.
- `workingDirectory` (`string`)
  The working directory to use for the command. If null, the working directory of the current process is used.
