Im trying to run elastic search via eclipse.Im running this within a project with elastic search as dependency . I have the dependency specified in the pom.xml. Im trying to call the Elasticsearch.main().
Im not sure what arguments needs to be passed as string array. Because of this Im getting the below exception
Error: Could not find or load main class Des.path.home
I have also updated the vm arguments to
Des.path.home = D:\Resources\elasticsearch-2.2.1 -des. security.manager.enabled = false -Des.http.cors.enabled = True -Des.http.cors.allow-origin = *
But still Im getting the above error.
Any Help on this is much appreciated.