Getting Started
These instructions are designed to help you get a basic setup, to be able to start coding with iCal4j.
Download
iCal4j libraries are currently published directly to Maven Central. Use the following table to identify current coordinates for iCal4j libraries:
Name | Current Coordinates | Deprecated Coordinates |
---|---|---|
ical4j | Maven | - |
ical4j-vcard | Maven | - |
ical4j-extensions | Maven | - |
ical4j-zoneinfo-outlook | Maven | - |
ical4j-connector | Maven | Maven |
ical4j-integration | Maven | Maven |
ical4j-serializer | Maven | Maven |
Extract
Extract the files included in the zip archive to a folder on your hard drive.
Build (Optional)
If you choose to download the source distribution you will need to build the library. This can be done using the Gradle build script (build.gradle) found in the root directory.
Include in your Classpath
Including iCal4j in your classpath depends on how you are developing your software. Typically an IDE such as [Eclipse] is used, in which case you would right-click on your Eclipse project and add the ical4j.jar to the Build Path. Note that you will also need to include all compile-time https://github.com/ical4j/ical4j#system-requirements dependencies in your classpath also.
Add Import Statements to Your Classes
Add import statements in your classes to reference the appropriate net.fortuna.ical4j.* packages or the specific classes you'll be using. For example, to use the Calendar class, add:
import net.fortuna.ical4j.model.*;
or
import net.fortuna.ical4j.model.Calendar;
Ready to go!
You should now be ready to start working with iCal4j.