jiangweijiala Posted August 31, 2007 Share Posted August 31, 2007 How to run iReport.exe in java source code?The program could be compiled, but it pop a dialog "could not find the main class. Program will exit" when run it. import java.awt.*;import java.io.*;import java.awt.event.*; public class Test{ public static void main(String args[]) { try { Runtime ce = Runtime.getRuntime(); File file = new File("E:/iReport2.0.0" , "iReport.exe"); ce.exec(file.getAbsolutePath()); } catch (Exception e) {} }} Link to comment Share on other sites More sharing options...
jmurray Posted September 3, 2007 Share Posted September 3, 2007 why would you want to? Link to comment Share on other sites More sharing options...
jiangweijiala Posted September 3, 2007 Author Share Posted September 3, 2007 Thanks for jmurray's reply.Because my boss demanded us to do that.Our step is as below:1. copy iReport2.0 to web server such as jboss4.0.4,weblogic etc.2. client start iReport.exe which deploy in web server in a browser3. client design reports style, after finished ,save "XXX.jrxml" to remote server in specified directory.4. Remote server read data from database and then filled the data into the specified "XXX.jrxml",compile it to get a "XXX.jasper" file.5.the server dispatch the "XXX.jasper" file to client.6.client can view the "XXX.jasper" with pdf,xml,excel etc. 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