How to run java program in command prompt,created by intellij

前端 未结 6 1206
余生分开走
余生分开走 2021-01-01 10:53

How do I run my Java program in command prompt, my project was created in Intellij, and I am having difficulties running it in the command prompt...without using the Intelli

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-01 11:19

    It looks like the class is in a package com.myexample.test. Try running

    java com.myexample.test.myjava
    

    from the project's bin directory

提交回复
热议问题