awecz / indic-jasper

Automatically exported from code.google.com/p/indic-jasper
0 stars 0 forks source link

Exception : ODT creation time : 125 #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1.I have checkout the jasper-report source
2.I have followed steps given on

Download the zip from 
http://indic-jasper.googlecode.com/files/jasperreports-cdac-ilcg.zip
Unzip the content
Copy the content to SRC folder of the JasperReports
Include required OpenOffice libraries in your class path
Required OpenOffice library files :
officebean.jar
juh.jar
jurt.jar
ridl.jar
unoil.jar
Ex: in Linux use the command export CLASSPATH=$CLASSPATH:/JarFolder/JarFile to 
set up class path
Run the command "ant jar" from the root folder of your JasperReport project to 
re build

I am using WIN machine unfortunately for now,
So I have added required jar file in classpath and also added the generated 
jasper-report.jar jar file in classpath .

I am trying to pring some hindi text on pdf but its throwing following 
exception ,code and jrxml attached

Thanks

ODT creation time : 125
com.sun.star.comp.helper.BootstrapException
        at ooo.connector.BootstrapConnector.connect(BootstrapConnector.java:129)
        at ooo.connector.BootstrapSocketConnector.connect(BootstrapSocketConnector.java:68)
        at ooo.connector.BootstrapSocketConnector.connect(BootstrapSocketConnector.java:45)
        at ooo.connector.BootstrapSocketConnector.bootstrap(BootstrapSocketConnector.java:82)
        at in.cdac.ilcg.jasperreports.pdfexporter.JRPdfExporter.exportReportToStream(JRPdfExporter.java:494)
        at in.cdac.ilcg.jasperreports.pdfexporter.JRPdfExporter.exportReport(JRPdfExporter.java:395)
        at javaapplication2.TestJasperReport.createReport(TestJasperReport.java:87)
        at javaapplication2.TestJasperReport.main(TestJasperReport.java:97)

Original issue reported on code.google.com by JIGA...@gmail.com on 4 Dec 2010 at 1:47

Attachments:

GoogleCodeExporter commented 8 years ago
Actually problem persist because classpath of openoffice not set. For that 
follow these steps:

For Ubuntu/Linux:
1)  Install openoffice.
2)  Open terminal by using Alt+Ctl+T
3)  Run command printenv in terminal.It will show list of environment variables.
4)  Search OPENOFFICE_PATH environment variable. If not found proceed to step 
No. 5
4) Search environment file in file system.
    Go to  etc/ environment
5) Add openoffice installation path.
    OPENOFFICE_PATH=/usr/lib/openoffice/program (Path is openoffice installation path)
6) Save environment file and restart server.

For Windows:
1)  Install openoffice.
2)  Set environment variable:
Go to -> My computer->Properties->Advanced->Environment Variables
3)  In system variables pane click new button.
4)  In new system variables popup window set following attributes:
Variable Name: OPENOFFICE_PATH
Variable Value: C:\Program Files\OpenOffice.org 3\program (Path is openoffice 
installation path)
5)  Save environment variables and restart system.

Original comment by lokesh.g...@fountainhead.biz on 4 Feb 2014 at 11:36