Highlighted

dx tool failed:Could not create the Java virtual machine

Community Beginner ,
Feb 06, 2018

Copy link to clipboard

Copied

I upgraded the Adobe AIR SDK to version 28.0.0.125 through the Manage AIR SDK with Flash Professional CS6. After this update, Flash Professional is no longer able to publish the application to Android.

The following error is displayed:

erro.png

I found some solutions through searches in the forum and Google and I tried editing the file  jvm.ini, setting the variable to -Xmx256m, -Xmx512m or -Xmx1024m:

erro2.png

I changed the JAVA_HOME system variable for both Java versions:

java_home.png

java_home2.png

Others solutions that i tried:

- Run Flash Professional CS6 as Administrator;

- Reinstalling Flash Professional;

- Reinstalling Java (both 32bits and 64bits);

- Install others "current" versions, like 27, 26 and 25, but the errors still occur; The only version work is AIR 3.4 (cs6 default);

... but nothing works!

What I was able to do was create a system variable called _JAVA_OPTIONS and add "-Xmx512m" as value, but the flash exhibited the versions in a very different way:

erro3.png

So, how can I fix this?

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

edit jvm.ini

Views

3.8K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

dx tool failed:Could not create the Java virtual machine

Community Beginner ,
Feb 06, 2018

Copy link to clipboard

Copied

I upgraded the Adobe AIR SDK to version 28.0.0.125 through the Manage AIR SDK with Flash Professional CS6. After this update, Flash Professional is no longer able to publish the application to Android.

The following error is displayed:

erro.png

I found some solutions through searches in the forum and Google and I tried editing the file  jvm.ini, setting the variable to -Xmx256m, -Xmx512m or -Xmx1024m:

erro2.png

I changed the JAVA_HOME system variable for both Java versions:

java_home.png

java_home2.png

Others solutions that i tried:

- Run Flash Professional CS6 as Administrator;

- Reinstalling Flash Professional;

- Reinstalling Java (both 32bits and 64bits);

- Install others "current" versions, like 27, 26 and 25, but the errors still occur; The only version work is AIR 3.4 (cs6 default);

... but nothing works!

What I was able to do was create a system variable called _JAVA_OPTIONS and add "-Xmx512m" as value, but the flash exhibited the versions in a very different way:

erro3.png

So, how can I fix this?

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

edit jvm.ini

Views

3.8K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 06, 2018 1
Adobe Community Professional ,
Feb 06, 2018

Copy link to clipboard

Copied

1. i'm using that version of air for android and having no problem.

2. did you restart animate after editing jvm.ini?

3. is your project modest (because that's not much memory)?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2018 0
Community Beginner ,
Feb 06, 2018

Copy link to clipboard

Copied

1. Ok, in the Animate works, but...

2. I'm using "Flash Professional CS6" and I restarted everytime (The FP and Windows).

3. My project have three ANEs with 7mb total and the .fla have 2mb. (I'm not using hard functions or methods...)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2018 0
Adobe Community Professional ,
Feb 06, 2018

Copy link to clipboard

Copied

start your memory at 16x1024

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2018 1
Community Beginner ,
Feb 06, 2018

Copy link to clipboard

Copied

Ok, but, how I do this?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2018 0
Adobe Community Professional ,
Feb 06, 2018

Copy link to clipboard

Copied

edit jvm.ini

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2018 1
Participant ,
Mar 25, 2018

Copy link to clipboard

Copied

I'm trying to follow this thread because I have the same problem, running AIR SDKs 26 and up through 29 and Flash CS5.5

The answer: "edit  jvm.ini" makes no sense to me. My jvm.ini has these two lines:

-Djava.awt.headless=true

-Xmx256m

Edit it to say what?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 25, 2018 0
Adobe Community Professional ,
Mar 26, 2018

Copy link to clipboard

Copied

change 256 to 16384

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 26, 2018 0
Adobe Community Professional ,
Mar 26, 2018

Copy link to clipboard

Copied

I change it to 1024, and never seem to run out of memory. My entire computer only has 16 GB, and letting Animate use all of that might not work so well.

Now, if you have a 32 GB computer, then sure, try bigger numbers.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 26, 2018 0
Community Beginner ,
Nov 02, 2019

Copy link to clipboard

Copied

we tryed to make all this steps, but nothing works, for 15 days yet... so frustrating...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 02, 2019 0