I'm looking to create a desktop helper program with Java, a couple JOptionPane option dialogues, and in that I would like to open programs (both internal and external, internal being something like notepad, external being a game like league of legends, something that doesn't come with Windows if that makes any sense whatsoever) I also want to open webpages, but I've got that worked out with this code:
try {
Desktop.getDesktop().browse(new URI("http://www.gamestop.com/wii-u/games/super-smash-bros/114504"));
giftinfo();
} catch (IOException e) {
e.printStackTrace();
} catch (URISyntaxException e) {
e.printStackTrace();
}
Is there a way to open other (non Java) programs from a Java program?
Runtime.getRuntime().exec("notepad.exe");File file = new File (String path);