Built a project catalog, myapp. Write a Java file in this directory, declared package: package com.xyn.data; if a new file is written, use this package, and the reference path is import com.xyn.data; then this file is also Building it under the MyApp folder, so that the package above can be cited correctly. Note this path problem. Packaged cmd: javac -d. FileName.java