Jump to content

iReport error: not fined the main class


yael

Recommended Posts

Hi,

I whant to run the iReport from my java application.

I think I'm missing somethimg..

I get this error:

Java virtual machine launcher

Could not fined the main class, program will exit.

Code:

public class runApp {
Process proc;
runApp() {
String str = "C:\MyJava\iReport-1.3.0\iReport.exe";
try {
proc = Runtime.getRuntime().exec(str);
if (proc.waitFor() != 0) {
System.err.println("Program did not finish properly"«»);
}
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}

public static void main(String[] argz) {
new runApp();
}
}


I'm thinking that I'm missing some file to complite iReport running. (with this code I get the same error).

maybe I need add to this code more files to run the iReport?

I get this error when I'm running this code, and I was try to check if it is about my code (not attached to java):

If I coppy to some place in the computer only the iReport.exe file - then click on it to run this program, I get this error to.

but if I'm running from the shortcut desctop or from the exe that located in the iReport directory (whit no attached to java) it's running good.

so, I think this error dialog attached to iReport program.

 

Post edited by: yael, at: 2007/02/13 06:20

Post edited by: yael, at: 2007/02/13 07:12

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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