GSON - Installation

Jakob Jenkov
Last update: 2015-06-13

To use GSON in your Java application you need to include the GSON JAR file in the classpath of your Java application. You can do so either by adding GSON as a Maven dependency to your project, or by downloading the JAR file and include it in the classpath manually.

GSON as Maven Dependency

GSON as a Maven dependency looks like this:


Remember to insert the version of GSON you plan to use.

Download the GSON JAR File

If you are not using Maven in your Java project you can also download the GSON JAR file directly from the central Maven repositor. Go to

And search for gson. You will find the JAR file then. Download the JAR file and add it to the classpath of your Java application.

Jakob Jenkov

Featured Videos

Core Software Performance Optimization Principles

Thread Congestion in Java - Video Tutorial


Java Persistence
Close TOC

All Trails

Trail TOC

Page TOC