getting error when I compile the Java code using package in commandline?

后端 未结 1 468
被撕碎了的回忆
被撕碎了的回忆 2020-12-22 08:24

I have this directory structure:

project1/src/edu/course/firstweek/javacourse/Program1.java

Another file in one package above:



        
1条回答
  •  礼貌的吻别
    2020-12-22 08:56

    Try going into one directory inside, i.e. cd src and then compile Javac edu/course/firstweek/program2.java

    for running, do java edu.course.firstweek.program2

    0 讨论(0)
提交回复
热议问题