# JavaAppExecutableResourceOptions

- 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/JavaAppExecutableResourceOptions.cs)

This represents the options entity for configuring an executable Java application.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class JavaAppExecutableResourceOptions
{
    // ...
}
```

## Constructors

- [JavaAppExecutableResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions/constructors.md#constructor)

## Properties

- [ApplicationName](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions/properties.md#applicationname) : `string?` `get; set` -- Gets or sets the application name. Default is `target/app.jar`.
- [Args](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions/properties.md#args) : `string[]?` `get; set` -- Gets or sets the arguments to pass to the Java application.
- [JvmArgs](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions/properties.md#jvmargs) : `string[]?` `get; set` -- Gets or sets the arguments to pass to the Java Virtual Machine.
- [OtelAgentPath](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions/properties.md#otelagentpath) : `string?` `get; set` -- Gets or sets the OpenTelemetry Java Agent path. It should be an absolute path or relative to the working directory.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions/properties.md#port) : `int` `get; set` -- Gets or sets the port number. Default is `8080`.
