I have been trying to find an answer to this question for quite a while an I am not having any luck. Below I have an example of a simple program that is supposed to open Skype on my Mac. Everything compiles and runs fine, but as soon as Skype opens, it closes itself. How do I make sure it keeps itself open?
public class program{
public static void main(String[] args) throws Exception{
Process p = Runtime.getRuntime().exec(
new String[]{"open","/Applications/Skype.app"}
);
}
}