Java启动桌面应用程序
作者:互联网
startOneExe.java:
import java.awt.*; import java.io.File; public class startOneExe { public static void main(String[] args) throws AWTException{ try{ Desktop.getDesktop().open(new File("D:\\Program Files\\Genshin Impact\\launcher.exe")); } catch(Exception e){ e.printStackTrace(); } } }
标签:Impact,桌面,java,startOneExe,应用程序,Java,File,import,public 来源: https://www.cnblogs.com/jingzaixin/p/16444414.html