help me!!!

0
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) {}
}
}
jiangweijiala's picture
Joined: Aug 30 2007 - 5:35pm
Last seen: 11 years 11 months ago

2 Answers:

0
why would you want to?
jmurray's picture
549
Joined: Dec 11 2006 - 11:19am
Last seen: 12 years 8 months ago
0
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.
jiangweijiala's picture
Joined: Aug 30 2007 - 5:35pm
Last seen: 11 years 11 months ago
Feedback
randomness