When I start Elasticsearch won't work and will not find java.dll and java SE and you can see I have both installed (I reinstalled a couple of times and I reinstalled Elasticsearch as well) see command prompt below
C:\Users\tomsh\OneDrive\שולחן העבודה\Elastic\elasticsearch-8.0.0\bin>elasticsearch.bat
warning: ignoring JAVA_HOME=C:\Program Files\Java\jdk-17.0.2; using bundled JDK
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
C:\Users\tomsh\OneDrive\שולחן העבודה\Elastic\elasticsearch-8.0.0\bin>echo %JAVA_HOME%
C:\Program Files\Java\jdk-17.0.2
I have already tried every solution available online (that I found).
Thanks In Advanced, Tom.