• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

loading guava in netbeans

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone here loaded guava into NetBeans?  I tried and I can't get it to work.  There wasn't much info online so I'm hoping someone here can help me out.

Thanks.
 
Ranch Hand
Posts: 62
5
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Alex Houser wrote:Has anyone here loaded guava into NetBeans?  I tried and I can't get it to work.  There wasn't much info online so I'm hoping someone here can help me out.


The IDE used (Eclipse, NetBeans, etc..) is only partially relevant. What is important is what build system is used. If your project is Maven based, you only need to add the dependency on Google Guava (see on https://github.com/google/guava). And that's all.

If it's not Maven based, please, clarify what build system you are using.
 
Alex Houser
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

If it's not Maven based, please, clarify what build system you are using.


I apologize for my ignorance, but I'm not sure what you mean by that.  I'm pretty new to all of this.  How do I know what system I'm using?  

Thanks.
 
Sheriff
Posts: 6030
157
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might not be using any build system.  If products like Maven, Gradle, Ant are unfamiliar to you, you probably don't.  The reason it was assumed you did is that this is a build tools forum.  But no matter, let's see if we can get Guava into your project without Maven... (to be continued)
 
Knute Snortum
Sheriff
Posts: 6030
157
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you can download the latest Guava jar file here:

https://github.com/google/guava/wiki/Release23

Do you know how to add a jar to your project?

* Right-click on your project
* Select Properties
* Select Libraries
* Click Add JAR/Folder
* Find your jar file in your folders

If you want to learn Maven and how it do this for you (manage dependencies) and more (build your project) post a new thread in the Maven forum:

https://coderanch.com/f/187/maven

(Don't worry, it is brand new and yours would be one of the first posts.) The same goes for Gradle, but pick one for now.  Maven is the old stand-by; Gradle is the new hot-shot.
 
Alex Houser
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



* Right-click on your project
* Select Properties
* Select Libraries
* Click Add JAR/Folder
* Find your jar file in your folders



I did this, first in Netbean, which is my IDE of choice, and I couldn't get it to work, but then did it in Eclipse and it worked fine.

So I can just use Eclipse to work on my program.  I'll figure out NetBeans later.

Thanks
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!