Running Java Program from Command Line Linux

前端 未结 4 1985
無奈伤痛
無奈伤痛 2020-12-08 08:24

I am not very experience with java and this is driving me crazy. I wrote a java program FileManagement and I need to run it from the command line.

I can

4条回答
  •  误落风尘
    2020-12-08 08:42

    What is the package name of your class? If there is no package name, then most likely the solution is:

    java -cp FileManagement Main
    

提交回复
热议问题