Skip to main content
Known Participant
July 3, 2011
Answered

Error initializing Java Runtime Environment. You may need to reinstall Flash.

  • July 3, 2011
  • 15 replies
  • 67979 views

...This is really annoying.

I work with adobe cs5. Recently, it started to not work. I would have to restart it over and over to get it to compile an swf properly. So I am trying cs5.5. I get this error "Error initializing Java Runtime Environment.  You may need to reinstall Flash."

So im like OK....Thats helpful....

-reinstalls flash-

"Error initializing Java Runtime Environment.  You may need to reinstall Flash."

...

-reinstalls java-

-reinstalls flash-

-reinstalls adobe flash cs5.5-

"Error initializing Java Runtime Environment.  You may need to reinstall Flash."

...

-google-

So I come across this post. Follow it exactly.

"Error initializing Java Runtime Environment.  You may need to reinstall Flash."

...

I change the thingy in the file to Xmx1024M

"Error initializing Java Runtime Environment.  You may need to reinstall Flash."

...

I come to the forums.

What do I do now?

This topic has been closed for replies.
Correct answer Interactive Developer

I found a solution, which works for me.

Just delete the jvm.ini file under the temporary folder location. In windows it would be below path.

C:\Users\USERNAME\AppData\Local\Adobe\FLASH_VERSION\en_US\Configuration\ActionScript 3.0

Eg. C:\Users\admin\AppData\Local\Adobe\Flash CS6\en_US\Configuration\ActionScript 3.0

As soon as you start the Flash, a defult jvm.ini will be created automatically, in that location and your flash works fine.

Acutally the error comes due to the corroupt jvm.ini file (Too large values > 256 cause the error appear. Eg. Xmx1024m ) which gets created in temporary configuration forlders automatically during the Flash Installation.

Everytime Flash starts its looks for the jvm.ini file and allow the maximum initalized memory to the JVM.

15 replies

Participant
August 25, 2011

I guess it was caused by the class_path  probably,  since last time in my pc class_path was :

.;%JAVA_HOME%\jre\lib\rt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\jconsole.jar;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\htmlconverter.jar;%JAVA_HOME%\lib\jvm.lib;

, and then I delete all files in  C:\Documents and Settings\All Users\Application Data\Adobe\CS5\jre\ copy another jre's files into the folder

and then  change class_path  into .;%JAVA_HOME%\jre\lib\rt.jar;%JAVA_HOME%\lib\tools.jar;

and things goes right

July 29, 2011

Hi!

So has anyone found a solution to this rather irritating problem?

I get this occurring with Flash CS5.5 multiple times every day! Restarting Flash works sometimes, but not always, same applies to restarting my PC...

Reinstalling Flash, as prompted by the error message has no effect, neither does reinstalling the JRE...

I'm running out of hair to pull out.

Known Participant
July 3, 2011

Am I really going to have to spend 39$ to get help....

kglad
Community Expert
Community Expert
July 3, 2011

http://kb2.adobe.com/cps/405/kb405652.html

Known Participant
July 3, 2011

kglad, if you read, you would see that I already tried that.

kglad
Community Expert
Community Expert
July 3, 2011

sorry i tried to help.

Ned Murphy
Legend
July 3, 2011

Your best bet might be to contact customer/technical support, or if you found a posting discussing your problem, send a private message to whomever was inquiring.  These are user to user forums, and the occasional visits by Adobe employees tend to occur only for postings where software bugs of new releases pop up.