0
package world;
public class ackage{
public static void main(String[] args) {
System.out.println("HELLO hi");

}   
}

I get some kind of error. the error is

Error: Could not find or load main class ackage
Caused by: java.lang.NoClassDefFoundError: world/ackage (wrong name: ackage)
Alex Shesterov
  • 26,085
  • 12
  • 82
  • 103
Samir Poudel
  • 195
  • 1
  • 9

1 Answers1

0

The name of java file and class name must be same. I think that is problem.

Duong Anh
  • 529
  • 1
  • 4
  • 21