• Post Reply Bookmark Topic Watch Topic
  • New Topic

Best way to download GSON Jar If I'm using only a text editor for development.  RSS feed

 
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I need to use the external GSON library and was wondering how I can download this.

I'm a bit confused. I see some direct links to JAR files and then some other forums saying I must install MAVEN and extract the ZIP from there.

I'm using only notepad++ for development at present, no IDE.

Thanks In advance.
 
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download the jar and put it into your classpath. Or use the -cp to specify the jar location when compiling and running

Refer to the jar's javadoc for the API method call during programming since you using Notepad++ (eg typing everything)
 
Nikolas Nikolaou
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Thanks for the reply.
I know how to access the JAR but my main question Is, am I downloading the correct JAR files ( as some forums suggest only the one obtained via github/maven Is the correct one and I
would need to use maven to obtain that file.

I have downloaded the file(s) from the following link: www.java2s.com › Jar File Download › gson
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
https://mvnrepository.com/artifact/com.google.code.gson/gson

I will recommend maven repo site because you can choose the different versions. Another source is the GSON original site whatever that is. The GitHub site I checked doesn't have the jar but the source.
 
Nikolas Nikolaou
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!