to be more precise I encountered the following error while installing elasticsearch for use with laravel/laragon
serverJVM at `C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll'.
Please install or use the JRE or JDK that contains these missing components.
Actually the jvm.dll file nowadays recides under the client directory; the server directory's name has been changed to the 'client'. By changing the name of the client directory back to 'server' the problem was solved and the elastic search install was succesful.