Getting Started


Sun Position Calculations is an LGPL licensed Java library for calculating sunrise and sunset times for any location in the world.

Building From the Source Code

Maven Build

Sun Position Calculations uses Maven 2.0 to build, run unit tests, and create the project web-site. Download Maven 2.0, and run mvn compile to build the library.


Before importing the Sun Position Calculations project into Eclipse, make sure that you have a successful Maven build. Maven will download all the dependencies needed to build Sun Position Calculations. You will need to define one Eclipse Java Classpath Variable, M2_REPO to point to the Maven 2.0 repository.