I think the problem is not in your package path, I mean try that too,
but I get the same error whenever lets say i have file
Main.java and inside is a class called class House
Now when you compile it is javac Main.java,
but when you run you do not call java Main.java or java Main
You must call the name of the class which in this case is House
so
java House
should compile without error
Remeber name of the file when you compile but name of the Driver class
(the one that executes main() ) when running the application