Today, when I was learning elasticsearch, I didn’t want to run elasticsearch.bat. As a result, soon after running, there was no black frame, only a flashback. I guess it was too fast. I don’t even have a black box. I can’t see any error information.
So I used CMD in the bin directory, as shown in the figure
Then execute the elasticsearch.bat file
Then you can see the error message error occurred during initialization of VM, error occurred during initialization.
Solution: I found Java_Home in my environment variable actually disappeared. Although I can still see the information by typing Java in the CMD window, it just disappeared. I guess it may be related to its disappearance, so I re-created Java_Home, locate the current Java directory, and start elasticsearch.bat again. It starts successfully!
Read More:
- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap
- [Solved] Neo4j Error: Error occurred during initialization of VM Incompatible minimum and maximum heap sizes spec
- [Solved] Virtualenvwrapper.sh error: There was a problem running the initialization hooks.
- Eclipse start project error: Errors occurred during the build. Errors running builder ‘Integrated External Tool Builder’ on…
- [Solved] Elasticsearch.service failed after enable elasticsearch security features
- [Solved] An error occurred while processing your request…enable the Development environment by setting …
- Error: a JNI error has occurred, please check your installation and try again
- Start Docker Quickstart Terminal error This computer is running Hyper-V. VirtualBox won’t boot a 64bits VM when Hyper-V is activated
- Error occurred when finalizing generatordataset iterator [How to Solve]
- Spark-SQL Error: A JNI error has occurred, please check your installation and try again Exceptio
- Eclipse an error has occurred [How to Solve]
- [Android Error] java.lang.RuntimeException: An error occurred while executing doInBackground()
- [Solved] ASP Website Error: An error occurred on the server when processing the URL.
- [Solved] Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com.and
- [Solved] Internal error occurred: failed calling webhook “validate.nginx.ingress.kubernetes.io”:
- Error: an error occurred while performing the step: “building kernel modules”. See/var/log/NV
- How to Solve Error: EOF occurred in violation of protocol (_ssl.c:877)
- [Solved] An unexpected error has occurred. Conda has prepared the above report.
- [Solved] Error occurred during connect to primary: exception 3000301: Connection could not be established
- Android Error: Consumer closed input channel or an error occurred. events=0x9