This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
"import ClassName" is illegal as per the JLS: you can't import names out of the default package. Older JDK compilers allowed this anyway, but now the rule is being enforced. Presumably when you reformatted, you upgraded your JDK version.