How do I run java program with multiple classes from cmd?

后端 未结 6 1838
梦如初夏
梦如初夏 2020-12-05 01:11

At the moment I am looking for another way to run my Java program from command line, other than adding it to a JAR file. My program has the following number of classes:

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 02:01

    It may be more then you want to tackle right now but you might want to consider a build system like Maven. To start try out; How do I make my first Maven project?

    You can use it to predefine the build order and if you want have it create a jar for you (or not).

提交回复
热议问题