Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 509
  • Last Modified:

How do I include JAR libraries in a NetBeans Project?

I am fairly new to Java, but have done some basic development.

I am working on creating a Java based application that will read the MtGox bitcoin exchange, and take the stream and put it into a MySQL database (Something I would normally do with PHP, excpet PHP is not the best tool for dealing with persistent connections like reading a web socket).

This library (http://xeiam.com/xchange.jsp) appears to have everything I need. And, I would like to get the example #5 working (see: http://xeiam.com/xchange_examplecode.jsp).

Here's the first issue: when I try to add the library to NetBeans, code completion does not work, and so I am assuming that it wasn't really added.

Question:

1. What is the proper file system layout for adding a set of jar files (like the ones from this download) into a Java project?

2. How do I create a project, and then add references to these jar files so code completion works?
0
DrDamnit
Asked:
DrDamnit
  • 2
1 Solution
 
ManishLeadCommented:
0
 
DrDamnitAuthor Commented:
To which part of that page are you referring?
0
 
ManishLeadCommented:
Check section Managing a Project's Classpath.
Basically what error you are getting?
If particular class is not found , have you check that that class  is available in jars?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now