Jump to content
Changes to the Jaspersoft community edition download ×

Why PDF Viewer is not running while invoked from the iReport Designer?


BShrestha
Go to solution Solved by BShrestha,

Recommended Posts

In iReport Designer options, the path to PDF Viewer is set to be "C:Program Files (x86)AdobeReader 11.0ReaderAcroRd32.exe" (without quotes). But when I run any report with PDF Preview enabled, I get following error;

Executing: C:Program Files (x86)AdobeReader 11.0ReaderAcroRd32.exe "Y:BikramShresthaJasper 3.7.0Rpt1515D.pdf"

Error viewing report...
java.io.IOException: Cannot run program "C:Program": CreateProcess error=2, The system cannot find the file specified 
    at java.lang.ProcessBuilder.start(Unknown Source) 
    at java.lang.Runtime.exec(Unknown Source) 
    at java.lang.Runtime.exec(Unknown Source) 
    at java.lang.Runtime.exec(Unknown Source) 
    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:1240) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) 
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 
    at java.lang.ProcessImpl.create(Native Method) 
    at java.lang.ProcessImpl.(Unknown Source) 
    at java.lang.ProcessImpl.start(Unknown Source) 
    ... 7 more 

 

It seems like the path given for Adobe Acrobat Reader gets truncated after the space character. However, the internal preview for pdf works from within the iReport designer. Has anyone encountered similar problem?  Any suggestions?

 

Link to comment
Share on other sites

  • 3 months later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

I found the work around by adding the path to AcroRd32.exe in Windows environment variable and in iReport Designer options, the path to PDF Viewer just set to  "AcroRd32.exe" (without quotes).

To add to the environment variable follow these steps;

- Right click on computer and go to properties.

- Click on "Advanced system settings" option.

-Click on "Environment Variables" button.

-In the "System variables" look for Variable named "Path". Edit it and add "C:Program Files (x86)AdobeReader 11.0Reader" at the end.

-Click on OK.

- You may need to restart the computer and iReport application both for the change to get working.

 

 

Link to comment
Share on other sites

  • 7 months later...

As for me, I am using another PDF viewer instead of Adobe Acrobat Reader. What's more, using code to deal with the related PDF viewing problem is too complicated for me. I prefer to do it with the help of some manual toolkits which can be customized by users according to our own favors. You can also google it and select one whose way of processing is simple and fast to help you with the related work. Remember to check its free trial package first if possible. I hope you success. Good luck.



Best regards,
Arron

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...