Skip to main content
keeney1228banks
Known Participant
August 28, 2017
Answered

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

  • August 28, 2017
  • 2 replies
  • 3839 views

I've seen this a few times on the forum, but almost always for another Adobe program.

The facts are:

  • Adobe Animate, build 16, 2017.1 release.
  • We have already reinstalled Flash (currently running Flash 26). We have reloaded the program, and tried restarting everything.
  • The project is a short test project; HTML5 Canvas. Testing and export were all tested in IE and Chrome (same results).
  • If I include any Action script, the error occurs. An example basic Action such as the HTML5 Canvas script:   this.stop();
  • The project tests and exports as movie okay if I include nothing in "Actions". Project tests in browser okay with some kinds of Action scripts, but always gives error during Export. If I add the Action script I want to use, the project test shows only the canvas color background, and nothing else (and if I export with that desired script, the error occurs).

Perhaps related: In an ActionScript 3.0 project, any ActionScript project gives me the same error if I include any ActionScript Actions, both during test and export.

This topic has been closed for replies.
Correct answer

Hello, guys!

I have suffered the same issue for several days, changing jvm.ini, pathes, and so on...

But none of these tweaks worked for me! This annoying problem remained as a tick!

And later I found another solution in one russian forum.

Some guy have written that his Windows7 (x64) lacks those packages:

Microsoft Visual C++ 2010 Redistributable - x86 10.0.40219   (x32)

Microsoft Visual C++ 2010 Redistributable - x64 10.0.40219  

Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161   (x32)

Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.6161

I had one of them, but to act for sure I have reinstalled a huge bundle of these.

And, holly crap, bingo! This disgusting error vanished, and export to swf begin to work!

2 replies

Correct answer
December 10, 2017

Hello, guys!

I have suffered the same issue for several days, changing jvm.ini, pathes, and so on...

But none of these tweaks worked for me! This annoying problem remained as a tick!

And later I found another solution in one russian forum.

Some guy have written that his Windows7 (x64) lacks those packages:

Microsoft Visual C++ 2010 Redistributable - x86 10.0.40219   (x32)

Microsoft Visual C++ 2010 Redistributable - x64 10.0.40219  

Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161   (x32)

Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.6161

I had one of them, but to act for sure I have reinstalled a huge bundle of these.

And, holly crap, bingo! This disgusting error vanished, and export to swf begin to work!

kglad
Community Expert
Community Expert
August 28, 2017

create a new jvm.ini file with a text editor (eg, notepad) and add

-Djava.awt.headless=true

-Xmx1024m

replace your jvm.ini file C:\Program Files\Adobe\Adobe Animate CC 2017

keeney1228banks
Known Participant
August 28, 2017

Thank you, kglad!

I failed to say that I did try deleting and editing the existing the jvi.ini files.

However, the locations (in case it matters) were here:

  • C:\Program Files\Adobe\Adobe Animate CC 2017\Common\First Run\ActionScript 3.0\
  • C:\Users\myusername\AppData\Local\Adobe\Animate CC 2017\en_US\Configuration\ActionScript 3.0\
kglad
Community Expert
Community Expert
August 28, 2017

uninstall animate cc including preferences, https://helpx.adobe.com/creative-cloud/help/uninstall-remove-app.html

restart your computer (don't skip this)

reinstall animate cc