Hi,
I want to build a report using BIRT Runtime Engine 3.7.1 and I'm trying to generate the .rptdesign file without using the designer so I followed this tutorial:
http://wiki.eclipse.org/Java_-_Simple_Design_Engine_API_(BIRT)
but when I run my project I got the following errors:
java.io.FileNotFoundException: C:\TEMP (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.eclipse.birt.report.model.util.XMLWriter.<init>(XMLWriter.java:131)
at org.eclipse.birt.report.model.writer.IndentableXMLWriter.<init>(IndentableXMLWriter.java:92)
at org.eclipse.birt.report.model.writer.ModuleWriterImpl.write(ModuleWriterImpl.java:293)
at org.eclipse.birt.report.model.api.ModuleHandleImpl.save(ModuleHandleImpl.java:1451)
at org.eclipse.birt.report.model.api.ModuleHandleImpl.saveAs(ModuleHandleImpl.java:1471)
at class1.buildReport(class1.java:93)
at main.main(main.java:28)
"C:\TEMP" is the parameter of design.saveAs()
I'm executing this code from an administrator machine,
I've even changed the location to an internal path in the workspace but I've got the same result
PS: I'm using Eclipse BIRT 3.7.1, windows XP SP2
Can any one help me to fix this problem or provide me any other solution to generate the .rptdesign file (a similar command to design.saveAs() ).