# Error opening zip file or JAR manifest missing : /path/to/elastic-apm-agent-1.17.0.jar

**URL:** <https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932>\
**Category:** APM\
**Tags:** java\
**Created:** [August 13, 2020, 6:15pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932 "2020-08-13T18:15:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bishanjitk](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@bishanjitk](https://discuss.elastic.co/u/bishanjitk)\
**Post date:** [August 13, 2020, 6:15pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/1 "2020-08-13T18:15:04Z")

</div>

I tried giving the same commandas per doc, but getting same error now also . Please help .

Error opening zip file or JAR manifest missing : /Users/bishanjitkumar/Downloads/elastic-apm-agent-1.17.0.jar  
Error occurred during initialization of VM  
agent library failed to init: instrument

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [August 14, 2020, 5:35am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/2 "2020-08-14T05:35:12Z")

</div>

Hi and thanks for your question.

Could you send me the output of this command?

```auto
ls -ahl /Users/bishanjitkumar/Downloads/elastic-apm-agent-1.17.0.jar

```

---

<div class="post-metadata">

**Author:** ![bishanjitk](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@bishanjitk](https://discuss.elastic.co/u/bishanjitk)\
**Post date:** [August 14, 2020, 5:49am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/3 "2020-08-14T05:49:10Z")

</div>

-rw-r--r--@ 1 bishanjitkumar staff 7.6M Aug 10 20:29 /Users/bishanjitkumar/Downloads/elastic-apm-agent-1.17.0.jar

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [August 14, 2020, 7:51am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/4 "2020-08-14T07:51:56Z")

</div>

Hm, that looks fine.

`Error opening zip file or JAR manifest missing` usually means that the JVM can't locate the jar. Maybe a permission problem or a typo somewhere?

---

<div class="post-metadata">

**Author:** ![bishanjitk](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@bishanjitk](https://discuss.elastic.co/u/bishanjitk)\
**Post date:** [August 14, 2020, 9:51am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/5 "2020-08-14T09:51:38Z")

</div>

Hi felixbarny,

Thanks for your response . I have tried giving the permission to all by using chmod 777 to the jar file and also i have tried accessing the jar file throught terminal and there is no issue with the path mentioned in the JVM command.

Please note i am getting this error while I am trying the set VM argument to my springboot application on STS.

Thanks & Regards,  
Bishanjit Kumar

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [August 14, 2020, 1:18pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/6 "2020-08-14T13:18:30Z")

</div>

May STS execute your application in some kind of container that doesn't have access to your downloads folder? What's the output when you do `System.out.println(new File("/Users/bishanjitkumar/Downloads/elastic-apm-agent-1.17.0.jar").canRead());` in your application?

---

<div class="post-metadata">

**Author:** ![bishanjitk](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@bishanjitk](https://discuss.elastic.co/u/bishanjitk)\
**Post date:** [August 14, 2020, 1:24pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/7 "2020-08-14T13:24:11Z")

</div>

> [@felixbarny](#):
>
> System.out.println(new File("/Users/bishanjitkumar/Downloads/elastic-apm-agent-1.17.0.jar").canRead());

false is the output for that execution.

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [August 14, 2020, 2:05pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/8 "2020-08-14T14:05:13Z")

</div>

We’re getting closer. Does it `exists()`?

---

<div class="post-metadata">

**Author:** ![bishanjitk](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@bishanjitk](https://discuss.elastic.co/u/bishanjitk)\
**Post date:** [August 14, 2020, 2:54pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/9 "2020-08-14T14:54:51Z")

</div>

exists() method returns true.

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [August 14, 2020, 3:17pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/10 "2020-08-14T15:17:16Z")

</div>

Then it seems to be a permission problem indeed. Try placing the agent into a different folder. Maybe your project directory.

---

<div class="post-metadata">

**Author:** ![bishanjitk](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@bishanjitk](https://discuss.elastic.co/u/bishanjitk)\
**Post date:** [August 14, 2020, 3:31pm UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/11 "2020-08-14T15:31:18Z")

</div>

Hi Felixbany,

Thanks a lot after placing the agent jar file into my project directory the issue is resolved now . Thanks a lot again for your swift support. 😇 😇 😇 😇 😇

Regards,  
Bishanjit Kumar

---

<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:** [September 4, 2020, 11:31am UTC](https://discuss.elastic.co/t/error-opening-zip-file-or-jar-manifest-missing-path-to-elastic-apm-agent-1-17-0-jar/244932/12 "2020-09-04T11:31:23Z")

</div>

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