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.
All the packages you mention are not part of the JDK, and also not under Java 1.4.
Your application uses some libraries, make sure that you include all the needed libraries in the classpath. It's not different from Java 1.4. Are you now compiling your classes differently than when you were using Java 1.4? Why?
I am certain they are part of JDK1.4. When I look into rt.jar I can see them. But they are missing from JDK1.5's rt.jar.
I checked; these classes are indeed in rt.jar of Java 1.4.
But since these classes are not mentioned in the API documentation of J2SE 1.4, you should not have used them in your application. They are not part of the official API, so Sun can remove them as they like in a new version.