Skip to content

Solr Prerequisites

Solr 10 requires Java 21 or later. Any modern OpenJDK build works — from your OS package manager, or a distribution like Eclipse Temurin. Make sure that the JVM you are trying to use is in your PATH. You can verify via:

$ java -version
openjdk version "21.0.11" 2026-04-21
OpenJDK Runtime Environment (build 21.0.11+10-1-26.04.2-Ubuntu)
OpenJDK 64-Bit Server VM (build 21.0.11+10-1-26.04.2-Ubuntu, mixed mode, sharing)
Section titled “A UNIX-like shell (Optional, Recommended for Windows users)”

Many examples in Solr documentation make use of the UNIX (including Linux and Mac OS-X) environment. The $ you see in some examples is the UNIX (bash) shell prompt.

If you’re on Windows, WSL (Windows Subsystem for Linux) gives you a real Linux environment and is the easiest way to follow along. While a UNIX-like environment is not a prerequisite, it will help immensely with the ability to follow certain documentation examples, testing, and getting help from the user forum.

Curl is a great command line utility for sending HTTP requests. It comes preinstalled on Linux, Mac OS-X, and modern Windows.

Curl is *not* a prerequisite, and is not recommended for high volume updating or querying in a production environment. It is normally only used for testing, examples, or scripting update commands where performance is not important.

If you have curl installed correctly, you’ll be able to talk to Solr from the command line. As an example:

$ curl "http://localhost:8983/solr/demo/query?q=hello"

And if the server is running, you’ll get a response like the following:

{
"responseHeader":{
"zkConnected":true,
"status":0,
"QTime":1,
"params":{
"q":"hello"}},
"response":{"numFound":0,"start":0,"numFoundExact":true,"docs":[]
}}

Congratulations, you’re now ready to Get Started!