Error: Could not find or load main class org.elasticsearch.bootstrap.Elasticsearch - Windows Server 2012 R2 - ElasticSearch 2.1.1

I am facing this error when i tried to run elasticsearch.bat file.

I have verified the JAVA_HOME environment variable. But still the above error persists.

2.X is no longer supported sorry. You need to upgrade as a matter of urgency.

See EOL for more.