You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
731 B
Java

Run external application in java
//This is main program
import java.io.*;
public class MainPro{
public static runExtApp runapp =new runExtApp();
public static void main(String[]args){
runapp.runfunc();
}//end void main
}//end inheritancetest
//this class is called from main program
import java.io.*;
public class runExtApp{
public void runfunc(){
try{
Runtime.getRuntime().exec("notepad");
}catch(IOException e){ //end try 5
System.err.println(e);
}//end try catch block 7
}//end runfunc
}//end main class runExtApp