I've tried to build a calendar with ical4j
. When I'm trying to get the output to a file, it's giving me an exception like given below :
net.fortuna.ical4j.validate.ValidationException: Property [PRODID] must be specified once.
The code :
FileOutputStream icsOutputStream = new FileOutputStream(new File("").getAbsoluteFile()+ "classInfo.ics");
CalendarOutputter icsOutputter = new CalendarOutputter();
icsOutputter.output(ical4jHandler.icsCalender,icsOutputStream);