it works fine if I remove to use the packages
You need to Store this file inside mypackage
folder.
Than go to command prompt
C:\pathTomyPackage>javac Person.java
NOTE: Use cd folderName
command to go Inside folder upto .java
file.
or
C:\>javac PathToFile\Person.java