mmccaskill Posted March 4, 2007 Share Posted March 4, 2007 How can I get iReport to use the external programs? Firefox for HTML or Preview for PDF. No matter what I get: Code: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:55Post edited by: mmccaskill, at: 2007/03/04 20:22 Link to comment Share on other sites More sharing options...
jalchin Posted March 13, 2007 Share Posted March 13, 2007 I have this same issue. I'm using the 1.3.1 versions of both iReport and JasperReports. Does anyone know what's causing this problem? Link to comment Share on other sites More sharing options...
bluelikejazz Posted March 13, 2007 Share Posted March 13, 2007 Post edited by: bluelikejazz, at: 2007/03/12 21:58 Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted March 13, 2007 Share Posted March 13, 2007 This normally happens when the path you specified is not valid or points to a not executable file (/Applications/Preview.app) Maybe some Mac expert can help you... Giulio Link to comment Share on other sites More sharing options...
scottmacpherson Posted April 23, 2007 Share Posted April 23, 2007 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 More sharing options...
jalchin Posted April 23, 2007 Share Posted April 23, 2007 This worked for me... thanks! Link to comment Share on other sites More sharing options...
scottmacpherson Posted April 23, 2007 Share Posted April 23, 2007 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):Code:"open %filename" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now