JVM Terminated. Exit Code = 13

Source: Internet
Author: User

I tried to start an error when I started the Ddms tool under Android Studio,

Started to suspect that the JVM path is out of the question, because the 2nd line/usr/bin/java with the penultimate 7th, should be the problem point. Looking for a long time, find the answer is that the JVM path does not need to set itself,

When setting the JDK environment variable, Java has already found the JVM path through its own mechanism, and can Baidu itself.

So where the hell is the problem? After viewing the link http://stackoverflow.com/questions/8230853/eclipse-does-not-launch-ubuntu-jvm-terminated-exit-code-13

You will find that it is the JDK problem, because I installed the X86-32 bit, the system is 64, a momentary negligence. So you need to download 64-bit, X64 packages from the official website

Note: X86 is a 32-bit. About this knowledge point, self-Baidu

After installing the 64-bit JDK, you need to configure the switchover between different versions of the JDK, with the following command: sudo update-alternatives--config java.

Of course, you need to add the new JDK to the selection list before performing the switchover:

$ sudo update-alternatives–install/usr/bin/javah javah/opt/jdk/bin/javah 255
$ sudo update-alternatives–install/usr/bin/javac Javac/opt/jdk/bin/javac 255
$ sudo update-alternatives–install/usr/bin/java Java/opt/jdk/bin/java 255
$ sudo update-alternatives–install/usr/bin/jar Jar/opt/jdk/bin/jar 255

Back 255 This number represents the priority, please feel free (because there is no difference in the moment, hehe), I wrote 700.

Online there are said to switch to 64-bit system success, input java-version will have 64-bit prompt:

But I entered the java-version myself under Ubuntu but did not show it,

Maybe it's a system difference, but actually I'm using a 64-bit JDK,DDMS that can start up normally.

Attach the successful boot DDMS:

JVM Terminated. Exit Code = 13

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.