added java api dependency to avoid eclipse errors