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 :)

