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