# JavaAppExecutableResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/csharp/communitytoolkit.aspire.hosting.java.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppExecutableResource.cs)
- Inherits: `ExecutableResource`
- Implements: `IResource`, `IResourceWithEndpoints`, `IResourceWithWaitSupport`, `IResourceWithServiceDiscovery`

A resource that represents a Java application.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class JavaAppExecutableResource
    : Aspire.Hosting.ApplicationModel.ExecutableResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport,
      Aspire.Hosting.IResourceWithServiceDiscovery
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.Java/JavaAppExecutableResource`

## Constructors

- [JavaAppExecutableResource(string, string)](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresource/constructors.md#constructor-string-string) -- Initializes a new instance of the [JavaAppExecutableResource](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresource.md) class.
- [JavaAppExecutableResource(string, string, string)](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresource/constructors.md#constructor-string-string-string) `obsolete` -- Initializes a new instance of the [JavaAppExecutableResource](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresource.md) class.

## Properties

- [JarPath](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresource/properties.md#jarpath) : `string?` `get; set` -- Gets or sets the path to the JAR file to execute.
