Problem phenomenon:
import sun.security.action.GetBooleanAction;
import com.sun.image.codec.jpeg.JPEGCodec;
The sun or com.sun package path cannot be found, and a red cross is reported in the ide
Solution:
Remove jre in the build path panel, then re-add the jre system library.