"Error: Could not find or load main class packageb\ClassB"
What is the current directory where the java command is issued?
The current directory should contain the packageb folder.
Also try java packageb,ClassB
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'
Paste here.