idea右键无run选项

选中java 文件所在的package右键选中Mark Directory as---Sources  Root

 

 若此时运行时弹出:

cannot start compilation:the output path is not specified for module specify the output  path in the project structure dialog

出现该错误是在intelliJ IDEA 中创建项目之后没有指定项目编译输出的地方,指定位置即可。如下图:

发布了81 篇原创文章 · 获赞 9 · 访问量 6万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章