java播放视频

    技术2025-08-30  12

    import java.io.*;public class MyRun {    private static void Run(String filePath)    {        Runtime r = Runtime.getRuntime();        try         {            r.exec("cmd /c start "+filePath);        } catch (IOException e)         {            System.out.println(e);        }    }    public static void main(String[] args) {        MyRun.Run("D://电影//蜘蛛侠.avi");    }}

    最新回复(0)