

Finally, click the OK button:įor more information on adding a dependency, see this guide. To do this, launch IntelliJ then navigate to File-> Project Structure -> Modules -> Dependencies.Ĭlick on the add (+) button and select the file you downloaded.

You can also do this manually by navigating to SparkJava and downloading the spark-core-2.9.3.jar file.Īfter the download is complete, add the file to the project dependencies. Great! The compiler may prompt you to download the files that make up spark-core, spark-template-handlebars, and slf4j-simple (a logging tool that provides better error messaging). 4.0.0 org.section SparkTutorial 1.0-SNAPSHOT org.slf4j slf4j-simple 1.7.21 com.sparkjava spark-core 2.9.3 17 17
