---
title: Enable Autocomplete and Search for Java
description: >-
  Configure Java applications to enable IDE-like autocomplete and search
  features for Dynamic Instrumentation.
breadcrumbs: >-
  Docs > APM > Application Instrumentation > Dynamic Instrumentation >
  Autocomplete and Search > Enable Autocomplete and Search for Java
---

# Enable Autocomplete and Search for Java

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site). ().
{% /alert %}

{% /callout %}

## Requirements{% #requirements %}

- [Dynamic Instrumentation](https://docs.datadoghq.com/dynamic_instrumentation) is enabled for your service.
- Tracing library [`dd-trace-java`](https://github.com/DataDog/dd-trace-java) 1.42.0 or higher is installed.

## Installation{% #installation %}

Run your service with Dynamic Instrumentation enabled, autocomplete and search are automatically enabled.

## Additional configuration{% #additional-configuration %}

### Disabling autocomplete and search{% #disabling-autocomplete-and-search %}

To disable autocomplete and search for your service, use the following option:

```gdscript3
export DD_SYMBOL_DATABASE_UPLOAD_ENABLED=false
```

or:

```gdscript3
  -Ddd.symbol.database.upload.enabled=false
```

### Third party detection{% #third-party-detection %}

If autocomplete suggestions do not appear for your package or module, it may be incorrectly recognized as third-party code. The autocomplete and search features use a heuristic to filter out third-party code, which can sometimes lead to accidental misclassification.

To ensure that your code is properly recognized and to enable accurate autocomplete and search functionality, you can configure the third-party detection settings using the following options:

```gdscript3
export DD_THIRD_PARTY_EXCLUDES=<LIST_OF_USER_CODE_PACKAGE_PREFIXES>
export DD_THIRD_PARTY_INCLUDES=<LIST_OF_ADDITIONAL_THIRD_PARTY_PACKAGE_PREFIXES>
```

or:

```
  -Ddd.third.party.excludes=<LIST_OF_USER_CODE_PACKAGE_PREFIXES> \
  -Ddd.third.party.includes=<LIST_OF_ADDITIONAL_THIRD_PARTY_PACKAGE_PREFIXES> \
```

Where a list means a comma separated list of package prefixes, for example

```gdscript3
export DD_THIRD_PARTY_EXCLUDES=com.mycompany,io.mycompany
```
