Hi SeaBream - I got that error as well but only if I bump up the -Xmx128m too much. For me reducing it back to someting < 300 made it work again.

I would appreciate if someone from Adobe could comment on this though because at the moment - I've got expensive subscription to Creative Cloud and I can't use it because this issue basically stops me developing anything!

I can't see how this makes ANY sence but I just moved files associated with my test project away from my [USER] home directory to a different folder and the error disappeared. I've been messing around with this for a few hours but I don't believe I changed anything which could have affected it.

Since you have mentioned you have the same configurations in both the cases(PC, RAM, XP, AdminUser, JavaRuntimeVersion, CS6 and a same test file) but one is working and the other is not, seems like neither this is an issue with Flash CS6 nor with JavaRuntime in your case. Is there any other vital difference you could observe between your PC's?

I just installed CS6 and had the same problem. My solution is quite simple. After I encoutered the problem, I re-installed java as administrator by clicking the installer. But I doubt that is necessary.

Then I ran Flash CS6 as the administrator by right clicking the shortcut. That worked.

I'm having this same issue. Running Flash Pro CS6 on a Win7 64-bit OS, 8gb of RAM and an SSD hard drive. Especially given Tatanium's 32gb of RAM, I think we can clearly eliminate "tech specs" from the reasons causing this.

If I had to guess it might be some directory reading issue, since moving to a new folder often clears up the problem. This is a really hacky solution though, and only works sporadically. Plus it's a huge pain to have to move the source .fla every time I want to compile.

Specifically, I'm having my problem exporting a .swc containing a whole bunch of .wav files. It exports to about 30mb, so not wildly huge but decent enough.

UPDATE/FIX: I changed -Xmx128m to -Xmx256m in jvm.ini and it seems to have worked for me, after restarting Flash. Read above that it didn't work so I didn't try it earlier, I guess it's very machine-specific. My issue is solved for the time being, but this still seems to be a bit of a problem - good luck to everyone else/Adobe!

I was having these issues as well all of a sudden in Flash CC 2014. With my AIR-iOS project using Starling. My jvm.ini file had 256 in it by default to I changed that to 512 which caused all sorts of random errors in my Assets class where I embed all my assets using the [Embed tag.

So I uninstalled Flash and reinstalled it again. Opened my FLA and Flash told me I should use AIR 14.0 for iOS as my previous Target version was too old. Right now I can compile my FLA properly again without the Java error. So... not 100% if it was the re-install or switching to AIR 14.0 for iOS as Target but I have been compiling the FLA 7 times now without restarting Flash. Fingers crossed

back to square one again. The error message just popped up. So annoying.

update:

I removed some of the images I embed using the '[Embed tag'. And now it publishes again without the error. Weird because the published swf is only 1.8MB. Nothing crazy. So the problem seems related to embedding images using the [Embed tag...

update 2 / FIX:

Instead of using the embed tag to embed images I now have an 'assets' folder that I add to the AIR project (publish settings) that contains my images. Then I load the various images using the Loader. After an image is loaded I convert it to a Texture to use in Starling like so: