jar执行时命令行有空格的报错的处理,用~1,~2 ~3替换,要夺去掉一个字符,比如C:\Program Files\Java\jdk-17.0.1用C:\Progra~1\Java\jdk-17.0.1
例如:
D:\javaproject\maven_test1\out\artifacts\maven_test1_jar2>C:\Progra~1\Java\jdk-17.0.1\bin\java -jar maven_test1.jar
To view this video please enable JavaScript,and consider upgrading to a web browser that supports HTML5 video
This is a modal window.
Beginning of dialog window.Escape will cancel and close the window.
End of dialog window.