How to install Solr 6

Solr 6 is the newest version of Solr, an enterprise search platform. Download the package from the mirror site:

Notice Solr 6 needs JDK 8 to run. Otherwise you will get error

Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/eclipse/jetty/start/Main : Unsupported major.minor version 52.0

I have both JDK 7 and JDK 8, so I just execute jdk8.bat then run it. See JDK 8 and C:\ProgramData\Oracle\Java\javapath for details.

Solr switch to JDK 8 from 6.

Start the server

There is another difference between Solr 6 and earlier version. The start.jar now using different command syntax.

When I try to run the command java -jar start.jar in server folder, I get

Nothing to start

I remember the older version has the start.jar under example folder, now it's missing.

The command in Solr 6 is changed to the following

java -jar start.jar --module=http

The started server

The url is the same as before