So I saw this ugly message when trying to compile a SWF from an FLA: “Error initializing Java Runtime Environment

Flash CS3 (and CS4 I’m sure) apparently uses a Java compiler during the publish process, and perhaps other times too. Unfortunately in CS3 it looks like it is hardcoded to a certain VM version as described here. That guy’s directions apparently work on a mac, but I’m stuck on a PC, and symlinking isn’t an option there.

I had 1.6 (pretty much the latest version), so tried installing 1.5.0 (i.e., Java SE 5.0) side-by-side and renaming the folder in C:\Program Files\Java. That had no luck so I uninstalled Flash, uninstalled all JRE’s, reinstalled 1.5.0, and reinstalled Flash CS3. Still no luck. Doesn’t appear that CS3 even installs Java after all that!

Very weird.