If you'r in the same folder as the
Hamzah.class
file, you can invoke it directly using:
java Hamzah
This assumes
Hamzah
has a valid
main
method.
Assuming your class is in package
com.hamzah
, build and run from the
src
directory:
C:\Users\h.khammash\Desktop\Studening workspace\TestCmd\src>javac com\hamzah\Hamzah.java
C:\Users\h.khammash\Desktop\Studening workspace\TestCmd\src>java com.hamzah.Hamzah