Jump to content
We've recently updated our Privacy Statement, available here ×

help me!!!


jiangweijiala

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 browser

3. 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

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...