# Help with running the Apm Agent in Java 6 environment

**URL:** <https://discuss.elastic.co/t/help-with-running-the-apm-agent-in-java-6-environment/182100>\
**Category:** APM\
**Tags:** java\
**Created:** [May 21, 2019, 10:57pm UTC](https://discuss.elastic.co/t/help-with-running-the-apm-agent-in-java-6-environment/182100 "2019-05-21T22:57:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmoreira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lmoreira/32/46578_2.png) [@lmoreira](https://discuss.elastic.co/u/lmoreira)\
**Post date:** [May 21, 2019, 10:57pm UTC](https://discuss.elastic.co/t/help-with-running-the-apm-agent-in-java-6-environment/182100/1 "2019-05-21T22:57:00Z")

</div>

Good night dear!

I'm configuring:  
Elasticsearch  
Kibana  
Metricbeat  
Logastash  
Filelogbeat  
Apm-server

All in version 6.7.2, by the compatibility matrix the apm agent in version 1.3.1 and compatible only with java 7+.

My main application environment runs jboss4 with java 6.

I'm trying to upload the agent by listening to the pid of the jboss 4 process but it returns me the error "manifest not found".

Is there any version of the apm agent that runs in java 6 or some way to manually rotate it pointing to java 7 and using process pid?

Thank you!

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [May 22, 2019, 6:25am UTC](https://discuss.elastic.co/t/help-with-running-the-apm-agent-in-java-6-environment/182100/2 "2019-05-22T06:25:00Z")

</div>

Hi Leandro and welcome to the forum!  
Unfortunately, since the java agent is compiled for JVM 7, there is no way to install it on older versions.

---

<div class="post-metadata">

**Author:** ![lmoreira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lmoreira/32/46578_2.png) [@lmoreira](https://discuss.elastic.co/u/lmoreira)\
**Post date:** [May 23, 2019, 9:10am UTC](https://discuss.elastic.co/t/help-with-running-the-apm-agent-in-java-6-environment/182100/3 "2019-05-23T09:10:56Z")

</div>

Ola Eyal\_Koren,  
Thanks for the answer.  
I am trying to start the apm-gent process using the command line.

I installed java 7 on the machine and am trying to start the apm-gent process using the command line, but it returns me the error no main manifest attribute in elastic-apm-agent.jar.

 ![command](https://us1.discourse-cdn.com/elastic/original/3X/4/1/413c0b9f4a1743ad360cdff10982f4596c3e879f.png)

Do you know to say if it is possible to start the agent in this way or only within the jboss run.conf?

At.

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [May 23, 2019, 9:30am UTC](https://discuss.elastic.co/t/help-with-running-the-apm-agent-in-java-6-environment/182100/4 "2019-05-23T09:30:46Z")

</div>

Leandro,  
The agent is not a standalone Java app, it is a jar that needs to be installed on a JVM process, such as your JBoss. There is a way to start a separate process and install on running JVMs, but the agent will still need to run as part of the monitored JVM, which has to be of version 7 at least.  
So, as long as your JBoss is running on Java \<7, we would not be able to support that.

---

<div class="post-metadata">

**Author:** ![lmoreira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lmoreira/32/46578_2.png) [@lmoreira](https://discuss.elastic.co/u/lmoreira)\
**Post date:** [May 24, 2019, 12:48am UTC](https://discuss.elastic.co/t/help-with-running-the-apm-agent-in-java-6-environment/182100/5 "2019-05-24T00:48:59Z")

</div>

Hi Eyal\_Koren  
Thank you! For the answer and for the attention.

I would just like to express how impressed I am with the APM solution, it is simply spectacular, congratulations for the great work.

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [May 26, 2019, 5:37am UTC](https://discuss.elastic.co/t/help-with-running-the-apm-agent-in-java-6-environment/182100/6 "2019-05-26T05:37:37Z")

</div>

Thanks Leandro!  
Your feedback is highly appreciated! :elasticheart:

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 16, 2019, 1:37am UTC](https://discuss.elastic.co/t/help-with-running-the-apm-agent-in-java-6-environment/182100/7 "2019-06-16T01:37:57Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
