# JavaAppExecutableResourceOptions Properties

- Package: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/csharp/communitytoolkit.aspire.hosting.java.md)
- Type: [JavaAppExecutableResourceOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/javaappexecutableresourceoptions.md)
- Kind: `Properties`
- Members: `5`

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

## ApplicationName

- Name: `ApplicationName`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppExecutableResourceOptions.cs)

Gets or sets the application name. Default is `target/app.jar`.

```csharp
public string? ApplicationName { get; set; }
```

## Args

- Name: `Args`
- Modifiers: `nullable` `get; set`
- Returns: `string[]?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppExecutableResourceOptions.cs)

Gets or sets the arguments to pass to the Java application.

```csharp
public string[]? Args { get; set; }
```

## JvmArgs

- Name: `JvmArgs`
- Modifiers: `nullable` `get; set`
- Returns: `string[]?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppExecutableResourceOptions.cs)

Gets or sets the arguments to pass to the Java Virtual Machine.

```csharp
public string[]? JvmArgs { get; set; }
```

## OtelAgentPath

- Name: `OtelAgentPath`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppExecutableResourceOptions.cs)

Gets or sets the OpenTelemetry Java Agent path. It should be an absolute path or relative to the working directory.

```csharp
public string? OtelAgentPath { get; set; }
```

## Port

- Name: `Port`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/JavaAppExecutableResourceOptions.cs)

Gets or sets the port number. Default is `8080`.

```csharp
public int Port { get; set; }
```
