Java meluncurkan EXE

import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;//our imports

public static void main(String[] args) throws IOException {
  String path = "/example:/example/example.exe/"; //the absolute path
  open(path); 
}

public static void open(String targetFilePath) throws IOException {
  Desktop desktop = Desktop.getDesktop();
  desktop.open(new File(targetFilePath));//open the file
}
znarfbay