'Package org.joda.time does not exist

This is the very first time I try to import a third party *.jar into my project. I'm using Netbeans 7.0.1

Besides the usual project structure the following are inside the Source Packages folder:

Appointments 
|
 - MyDate.java
 - Run.java
 - joda-time-2.0.jar
    - org
      |
       - ...

Attempt at importing the Joda Time gives me: package org.joda.time does not exist

import org.joda.time.*;

What am I missing?



Solution 1:[1]

You need to check that "joda-time-2.0.jar" is added to your classpath. If it is then check that it really contains the package mentioned.

Solution 2:[2]

https://www.joda.org/joda-time/dependency-info.html

Apache Maven

<dependency>
  <groupId>joda-time</groupId>
  <artifactId>joda-time</artifactId>
  <version>2.10.13</version>
</dependency>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 xappymah
Solution 2 PokerFace