- Create your java project in eclipse
- Download the latest JodaTime
.tar.gz file, and extract its contents
- In Eclipse look for your project at package explorer and right click on it then call it
New -> Folder -> libs
- Copy/Drag joda-time-2.1.jar into the new created libs folder
- Right click on your project again (in package explorer) then
Properties -> Java Build Path -> Libraries -> Add Jars -> joda-time-2.1.jar
Now you can test with this code :
DateTime test = new DateTime();
if code compiled ok you are good to go