Running exe from java

Hi,

I whant to run the iReport from my java swing application.

I think I'm missing somethimg..

I get this error:

Java virtual machine launcher

Could not fined the main class, program will exit.

publicclass 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();

}

}

publicstaticvoid 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 to set more files to run this app?

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

[1726 byte] By [yael800a] at [2007-11-26 18:15:43]
# 1
Don't cross-post: http://forum.java.sun.com/thread.jspa?threadID=5136142
kajbja at 2007-7-9 5:49:16 > top of Java-index,Java Essentials,New To Java...