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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章