Just add twitter4j-core-3.0.5.jar to your application classpath in net beans and maven

StackOverflow https://stackoverflow.com/questions/22104782

Вопрос

I am trying to add a jar in accordance with this link: http://twitter4j.org/en/index.html#howToUse It states "Just add twitter4j-core-3.0.5.jar to your application classpath."

How do I do that in:

  1. Netbeans
  2. maven
  3. eclipse

Thanks!

Это было полезно?

Решение

Here is the best answer for netbeans; then I'll use the pom.xml from there: Daryl Nickerson

Joined: 23 May 2013
Posts: 1

PostPosted: Thu May 23, 2013 4:50 pm Post subject: Had the same problem, Brian's suggestion worked Reply with quote
Had the same problem, Brian's suggestion worked. (NetbBeans IDE 7.3)
To clarify, right-click the Libraries folder in the project viewer, select properties, in Project Properties window, select Libraries, click Add Jar/Folder button, select ALL jar files in your source folder (ctrl-a), not just the folder, and click Open to add them. This may be overkill, but it worked and I was able to compile and run. Thanks, Brian.

Good on Daryl on netbeans news group!

Другие советы

For Netbeans and Eclipse it should be right click 'libraries' in the project list, then click add.

This should help with maven http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

For Maven, add the following dependency:

  <dependency>           
     <groupId>org.twitter4j</groupId>           
     <artifactId>twitter4j-core</artifactId>           
     <version>3.0.5</version>
  </dependency>
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top