Skip to main content
cybobear
Inspiring
August 17, 2017
Question

dx tool failed: Could not create the Java virtual machine - adobe air 26

  • August 17, 2017
  • 1 reply
  • 3353 views

When I try to publish an ADK using the ADT command with air 26 I get this error:

dx tool failed: Could not create the Java virtual machine

Some users had the same issue publishing in animate here: Re: dx tool failed: Could not create the Java virtual machine

Re: dx tool failed: Could not create the Java virtual machine

However the suggested solution of using an old version of java didn't work for me. I tried installing jre8u74. Got the same error. The odd thing is I can publish using animate using air 26 with no error. However, when using the command line to publish android I get this error. This doesn't make sense. Has anyone encountered this with air 26 or has something become corrupt in my installs?

Thanks!

This topic has been closed for replies.

1 reply

Inspiring
August 24, 2017

I use java 1.8.0.101 (64bit) is ok. And edit air sdk folder ..\26.0.0\bin\adt.bat  

-jar "%~dp0\..\lib\adt.jar" %*  -------> "C:\Program Files\Java\jre1.8.0_101\bin\java.exe" -jar "%~dp0\..\lib\adt.jar" %*

cybobear
cybobearAuthor
Inspiring
August 24, 2017

Thank you for your reply. I believe I solved this by installing the newest version of java. If it crops up again I'll try your solution.