How do I run a Java class in a package?

后端 未结 5 1775
眼角桃花
眼角桃花 2020-11-28 11:37

I have two java classes as follows

App1 without a package:

class App1 {
    public static void main(String[] args) {
        System.out.         


        
5条回答
  •  渐次进展
    2020-11-28 12:08

    Check what is your classpath value by below command in command prompt echo %CLASSPATH%

    check where your class is getting created. to compile a java source program you need to check the path you are giving , whether java file is available there or not.

提交回复
热议问题