# APM Agent - Error: Could not find or load main class

**URL:** <https://discuss.elastic.co/t/apm-agent-error-could-not-find-or-load-main-class/251648>\
**Category:** APM\
**Tags:** elastic-stack-monitoring, java\
**Created:** [October 10, 2020, 2:43pm UTC](https://discuss.elastic.co/t/apm-agent-error-could-not-find-or-load-main-class/251648 "2020-10-10T14:43:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [October 26, 2020, 8:45pm UTC](https://discuss.elastic.co/t/apm-agent-error-could-not-find-or-load-main-class/251648/2 "2020-10-26T20:45:36Z")

</div>

Hi @MfuentesG,

This issue seems quite similar to [APM Agent does not start](https://discuss.elastic.co/t/apm-agent-does-not-start/252054/), is it the same or is it a different one ? The other one was due to extra characters in configuration, thus if it's not the same you might double-check this first.

---

_[View the full topic](https://discuss.elastic.co/t/apm-agent-error-could-not-find-or-load-main-class/251648)._
