# Enable APM for springboot running on windows

**URL:** <https://discuss.elastic.co/t/enable-apm-for-springboot-running-on-windows/383568>\
**Category:** APM\
**Tags:** java\
**Created:** [November 20, 2025, 6:56pm UTC](https://discuss.elastic.co/t/enable-apm-for-springboot-running-on-windows/383568 "2025-11-20T18:56:17Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [November 23, 2025, 4:27am UTC](https://discuss.elastic.co/t/enable-apm-for-springboot-running-on-windows/383568/10 "2025-11-23T04:27:02Z")

</div>

Hello @Aniket_Pant

From the below post i believe the location of setenv.bat can be causing issue ?

> [@APM Java Agent - manual setup](https://discuss.elastic.co/t/apm-java-agent-manual-setup/258581/4):
>
> I'm not sure about it, but where did you created the setenv.sh file ? Is it in $CATALINA\_BASE/bin/setenv.sh or $CATALINA\_HOME/bin/setenv.sh org.apache.catalina.startup.VersionLoggerListener.log CATALINA\_BASE: /var/lib/tomcat9 org.apache.catalina.startup.VersionLoggerListener.log CATALINA\_HOME: /usr/share/tomcat9

In your case we see below :

> [@Aniket\_Pant](#):
>
> Below is the output of setenv.bat present in C:/tomcat9/bin/

As per the logs shared it should be available in path C:\apache-tomcat-9\bin :

```properties
22-Nov-2025 18:55:22.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\apache-tomcat-9
22-Nov-2025 18:55:22.288 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\apache-tomcat-9

```

Thanks!!

---

_[View the full topic](https://discuss.elastic.co/t/enable-apm-for-springboot-running-on-windows/383568)._
