Kerri Efune wrote:. . . I have also attached a screenshot . . .
You don't appear to have added it, but it is better to
avoid screenshots; they are often difficult to read.
Try compiling classA on its own first.
Don't set the PATH to contain one directory only. Write
set path=C:\Program Files\Java\java-1.8.0-openjdk\bin;%PATH%
Otherwise I can't see anything wrong with what you posted.
There remains the possibility that you have set a CLASSPATH. Try setting a local CLASSPATH. Try java -cp . packageb.ClassB
[edit]Correct minor spelling error producing ਏ character.