# OneAgent won't function with Java 24, JEP 483: Ahead-of-Time Class Loading & Linking

**URL:** <https://community.dynatrace.com/t/oneagent-wont-function-with-java-24-jep-483-ahead-of-time-class-loading-linking/50393>\
**Category:** Troubleshooting\
**Tags:** oneagent, java\
**Created:** [April 7, 2025, 4:00pm UTC](https://community.dynatrace.com/t/oneagent-wont-function-with-java-24-jep-483-ahead-of-time-class-loading-linking/50393 "2025-04-07T16:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moritzwitti](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@moritzwitti](https://community.dynatrace.com/u/moritzwitti)\
**Post date:** [April 7, 2025, 4:00pm UTC](https://community.dynatrace.com/t/oneagent-wont-function-with-java-24-jep-483-ahead-of-time-class-loading-linking/50393/1 "2025-04-07T16:00:00Z")

</div>

# Summary

The Dynatrace OneAgent is incompatible with Java processes that have Ahead-of-Time (AOT) class loading enabled. This incompatibility may cause your application to crash or to disregard the AOT cache.

# Problem

The Java 24 feature “Ahead-of-Time Class Loading & Linking” is inherently not designed to work with JVMTI agents, such as OneAgent. Therefore, OneAgent won’t function with a Java process that has Ahead-of-Time class loading enabled; your application might crash or disregard the Ahead-of-Time cache. The error message to expect in this case is _java.lang.ClassNotFoundException_.

# Resolution

To enable OneAgent monitoring for Java processes, remove parameters related to Ahead-of-Time Class loading.

**Source**

- [JEP 483: Ahead-of-Time Class Loading & Linking](https://openjdk.org/jeps/483)

# What’s next

If this article did not help, please open a support ticket, mention that this article was used and provide the following in the ticket:

- description of the error you are seeing
- link to the host and process

---

<div class="post-metadata">

**Author:** ![RSarafaniuk](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rsarafaniuk/32/14727_2.png) [@RSarafaniuk](https://community.dynatrace.com/u/RSarafaniuk)\
**Post date:** [August 7, 2026, 8:05am UTC](https://community.dynatrace.com/t/oneagent-wont-function-with-java-24-jep-483-ahead-of-time-class-loading-linking/50393/2 "2026-08-07T08:05:21Z")

</div>

Hello,

Is there any updates with AOT coverage. We have cases with some customers that moved to Java 25 and chosed use AOT as a target technology.

So, It is really critical to cover it with agent, but from my researches there is no option. Maybe, someone have an answer is there any progress.

Thanks in advance.
