Package org.joda.time does not exist

17,782

Solution 1

You have to add joda-time-2.0.jar via project library. (Project + Libraries (Right mouse click) + Add Jar/Folder)

Solution 2

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.

Share:
17,782
Bob
Author by

Bob

Updated on June 04, 2022

Comments

  • Bob
    Bob almost 2 years

    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?