I have made a console based banking system in my first Java assignment. Everything works well if I use default package but when I add a
package bank;
at the top of all classes, it can not find classes and there are a lot of errors. How can I solve it?
I searched a lot on Google but didn't understand this thing.
cmd path is ...
C:\Users\Shah\Desktop\Assignment1\src\Bank.java and other classes are also in the same folder.
kindly help me to understand this thing
I tried
javac *.java
and it compiled
but when I tried to run the byte code by
java Bank
it gives java.Lang.NoClassDefFound
Error