Reputation: 1375
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?
Upvotes: 2
Views: 24088
Reputation: 801
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>
Upvotes: 1
Reputation: 94643
You have to add joda-time-2.0.jar
via project library. (Project + Libraries (Right mouse click) + Add Jar/Folder)
Upvotes: 6
Reputation: 1644
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.
Upvotes: 1