How do I make a JAR from a .java file?

前端 未结 7 1143
太阳男子
太阳男子 2020-11-29 17:55

I was writing a simple program using a Java application (not application that has projects, but application within a project; .java) that has a single frame. Both o

7条回答
  •  臣服心动
    2020-11-29 18:37

    Simply with command line:

    javac MyApp.java
    jar -cf myJar.jar MyApp.class
    

    Sure IDEs avoid using command line terminal

提交回复
热议问题