How to run a NetBeans project in command prompt?

后端 未结 8 1002
挽巷
挽巷 2020-12-14 19:51

My professor asked us to create a Java program that would be able to run in command prompt but could also be opened using NetBeans.

The program is about using the di

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-14 20:41

    If you click build inside NetBeans, it should give you (in your compiler output) a message like, "To run this application from the command line without Ant, try: java -jar yourPathToRun"

提交回复
热议问题