Jump to content
Changes to the Jaspersoft community edition download ×

iReport OS X External Programs


Recommended Posts

How can I get iReport to use the external programs? Firefox for HTML or Preview for PDF. No matter what I get:


Error viewing report... 
java.io.IOException: /Applications/Preview.app: cannot execute
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:429)
at java.lang.Runtime.exec(Runtime.java:326)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:1243)
at java.lang.Thread.run(Thread.java:613)


Do I need to do something to make this work?


Post edited by: mmccaskill, at: 2007/03/04 14:55

Post edited by: mmccaskill, at: 2007/03/04 20:22

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...

I've just started using iReport in OS X myself, and the solution is actually rediculously easy:

In the iReports setting dialog, under "External Programs", simply put the command "open" (without the quote marks) in the viewer text box for each type of file you want to build and open. This command effectively tells OS X to open the file generated in whatever application it would be opened in if you double clicked it in Finder.

Link to comment
Share on other sites

I've found that some pathnames don't work with this - nothing ever happens once iReport has run the "open" command. Doesn't seem to like spaces. Does anyone know of a way to bring more control to the "External Programs" settings? I'd like to be able to surround the command run in quotes, but there doesn't seem to be a way to determine where in the command iReports puts the filename.

I'd like to be able to do (WITH the quotes):

"open %filename"
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...