Search code examples
javaguava

how to obtain guava jar for command line usage


I would like to load the Guava library to make use of it via a command prompt in Windows. I can only locate information on how to use Guava with Maven and Eclipse, but nothing about how to do it just via command prompt. I also cannot determine where to obtain the JAR file.


Solution

  • Let's assume, by command line you mean javac. I've just UTFG "maven guava" and it took me to mvnrepository.com. From there on, you can navigate to the current version (22 as of now) and download it manually. There are more such repositories and most of them contain all usually used JAR files.