D:\software\path\Java\jdk1.8\bin\java "-javaagent:D:\software\path\IntelliJ IDEA 2017.3.1\lib\idea_rt.jar=8566:D:\software\path\IntelliJ IDEA 2017.3.1\bin" -Dfile.encoding=UTF-8 -classpath D:\software\path\Java\jdk1.8\jre\lib\charsets.jar;D:\software\path\Java\jdk1.8\jre\lib\deploy.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\access-bridge-64.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\cldrdata.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\dnsns.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\jaccess.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\jfxrt.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\localedata.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\nashorn.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\sunec.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\sunjce_provider.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\sunmscapi.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\sunpkcs11.jar;D:\software\path\Java\jdk1.8\jre\lib\ext\zipfs.jar;D:\software\path\Java\jdk1.8\jre\lib\javaws.jar;D:\software\path\Java\jdk1.8\jre\lib\jce.jar;D:\software\path\Java\jdk1.8\jre\lib\jfr.jar;D:\software\path\Java\jdk1.8\jre\lib\jfxswt.jar;D:\software\path\Java\jdk1.8\jre\lib\jsse.jar;D:\software\path\Java\jdk1.8\jre\lib\management-agent.jar;D:\software\path\Java\jdk1.8\jre\lib\plugin.jar;D:\software\path\Java\jdk1.8\jre\lib\resources.jar;D:\software\path\Java\jdk1.8\jre\lib\rt.jar Main
错误: 找不到或无法加载主类 Main
Process finished with exit code 1
——————————————解决办法——————————————————
1 排除jdk环境变量的问题
2 检查你的编译输出路径File----project struture,如图
注:我这里是简单的创建了一个简单的java项目(使用模板)
我更改为Use module compile output path 之后就能正常运行了