# JavaAppContainerResource Constructors

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

A resource that represents a Java application.

## JavaAppContainerResource(string, string?)

- Name: `Constructor(string, string?)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppContainerResource.cs#L13)

A resource that represents a Java application.

```csharp
public class JavaAppContainerResource
{
    public JavaAppContainerResource(
        string name,
        string? entrypoint = null)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `entrypoint` (`string?`) `optional`
  An optional container entrypoint.
