2016-09-26 33 views
0

我在使用intelliji EDK創建可運行的jar文件時遇到了問題,我在Eclipse EDK中嘗試了這一點,它是成功的,但我不'這個人似乎找不到任何運氣。如何在intelliji中構建可運行的jar文件14.1.4

+0

那你試試?您需要在「項目結構」對話框中配置工件。 – yole

+0

是的,先生,我確實嘗試過,我無法再走了。 –

回答

0

按照以下步驟來創建一個.jar使用的IntelliJ IDEA 14.1.4:

1.File > Save All. 
2.Run driver or class with main method. 
3.File > Project Structure.Select Tab "Artifacts". 
4.Click green plus button near top of window. 
5.Select JAR from Add drop down menu. 
6.Select "From modules with dependencies"Select main class. 
7.The radio button should be selecting "extract to the target JAR." 
8.Press OK.Check the box "Build on make"Press apply and OK. 
9.From the main menu, select the build dropdown. 
10.Select the option build artifacts. 
+0

mayny謝謝,雖然第5條指令沒有在我的情況下顯示...我認爲這個問題可能在我的軟件? –

相關問題