# IJavaAppResource

- Module: [Aspire.Hosting.Java](/reference/api/go/aspire.hosting.java.md)
- Version: `17.0.0-preview.1.26565.2`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

## Definition

```go
type IJavaAppResource interface{}
```

## Methods

- [WithJvmArgs](/reference/api/go/aspire.hosting.java/ijavaappresource/withjvmargs.md) -- `method` -- Adds arguments to the Java Virtual Machine that runs the application.
  ```go
  WithJvmArgs(args []string) IJavaAppResource
  ```
