How to create executable .jar file with netbeans

前端 未结 6 558
无人共我
无人共我 2021-01-18 08:33

I\'d like to make \"double-click\" cli application but still don\'t get how. I know I should propably somehow edit manifest but that is all. I googled ofc. but no success. T

6条回答
  •  爱一瞬间的悲伤
    2021-01-18 08:44

    It's Easy. Download a copy of netbeans. Make a new project in netbeans. Goto your main class in the Projects Explorer. This should be folder "YourProject" As the class YOURPROJECT.JAVA . It is this yourproject.java file that you want to start with. Just write your code into the public static void main area. You can run the program with the green play button in the top toolbar.

提交回复
热议问题