title: OpenJDK 64-Bit Server VM warning Elasticsearch not working in windows 10
body: <p>I cannot seem to find anything related to my problem in stack overflow. I've downloaded jdk 13.0 and elasticsearch 7.4.0.</p>
  
  <p>On cmd setting path to C:\Users\Desktop\download\elasticsearch-7.4.0-windows-x86_64\elasticsearch-7.4.0\bin I execute:</p>
  
  <pre><code>elasticsearch.bat
  </code></pre>
  
  <p>Which outputs:</p>
  
  <pre><code>OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
  Exception in thread "main" java.nio.file.InvalidPathException: Illegal char &lt;?&gt; at index 9: C:\Users\???\AppData\Local\Temp\elasticsearch
          at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
          at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
          at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
          at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
          at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
          at org.elasticsearch.common.io.PathUtils.get(PathUtils.java:60)
          at org.elasticsearch.env.Environment.&lt;init&gt;(Environment.java:95)
          at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:69)
          at org.elasticsearch.cli.EnvironmentAwareCommand.createEnv(EnvironmentAwareCommand.java:95)
          at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
          at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
          at org.elasticsearch.cli.Command.main(Command.java:90)
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
  </code></pre>
  
  <p>I've read <a href="https://github.com/elastic/elasticsearch/issues/43911" rel="nofollow noreferrer">https://github.com/elastic/elasticsearch/issues/43911</a> and people say they've solved it by increasing the ram in kubernetes. I have no knowledge of kubernetes and I'm not using it so I've decided to post this question.</p>
  
  <p>Could someone tell me why running elasticserach.bat is failing?</p>
  
  <p><strong>EDIT</strong> : as developer suggested </p>
  
  <p>I've read <a href="https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html" rel="nofollow noreferrer">https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html</a> and followed the procedure and still gives me same error message.</p>
  
  <p>But my path seems pretty odd compared to the resource I've followed. This is my path:</p>
  
  <pre><code>C:\Users\myname\Desktop\download\jdk-13.0.1_windows-x64_bin\jdk-13.0.1
  </code></pre>
  
  <p>which gave me same error as before.</p>
  
  <p>I've noticed java.exe is inside bin folder which is inside jdk-13.0.1 so I've tried setting value for system variable as</p>
  
  <pre><code>C:\Users\myname\Desktop\download\jdk-13.0.1_windows-x64_bin\jdk-13.0.1\bin
  </code></pre>
  
  <p>and now it give me:</p>
  
  <pre><code>"could not find java in JAVA_HOME or bundled at C:\Users\myname\Desktop\download\elasticsearch-7.4.0-windows-x86_64\elasticsearch-7.4.0\jdk"
  </code></pre>
  
  <p>I clearly see java.exe inside bin folder, why is it saying it cannot find it?</p>