# OpenJDK 64-Bit Server VM warning: Cannot open file logs/gc.log due to No such file or directory

**URL:** https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-no-such-file-or-directory/195887
**Category:** Elasticsearch
**Created:** [August 20, 2019, 10:31am UTC](https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-no-such-file-or-directory/195887 "2019-08-20T10:31:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mike\_Fritzsche](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_fritzsche/32/45572_2.png) [@Mike\_Fritzsche](https://discuss.elastic.co/u/Mike_Fritzsche)
#### Post date: [August 20, 2019, 10:31am UTC](https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-no-such-file-or-directory/195887/1 "2019-08-20T10:31:43Z")

</div>

I installed on my Mac OS 14.0.6 Elasticsearch with brew. It must be ES V 6 - not 7. But I tied to install 7 too - same error. So must be problem with the jdk? I was also installing java 8 with brew (was asking to install before Elasticsearch).  
After all finished and start in console with "Elasticsearch" I getter's error:

> OpenJDK 64-Bit Server VM warning: Cannot open file logs/gc.log due to No such file or directory

How can I fix this?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 20, 2019, 11:32am UTC](https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-no-such-file-or-directory/195887/2 "2019-08-20T11:32:29Z")

</div>

please do not create two posts about the same issue. This looks like a duplicate of [ES 6.8.2 on Mac OS 14.0.6 and Java JDK 12.0.2 ERROR](https://discuss.elastic.co/t/es-6-8-2-on-mac-os-14-0-6-and-java-jdk-12-0-2-error/195852) to me.

Thanks!

---

<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 17, 2019, 11:32am UTC](https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-no-such-file-or-directory/195887/3 "2019-09-17T11:32:49Z")

</div>

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