title: UIAutomatorViewer startup errors out
body: <p>I am trying to run UiAUtomatorViewer from command prompt on Windows10 machine. But it keeps giving the following error when I run <code>uiautomatorviewer.bat</code> from the <code>Sdk\tools\bin</code> directory.</p>
  <pre class="lang-sh prettyprint-override"><code>-Djava.ext.dirs=..\lib\x86_64;..\lib is not supported.  Use -classpath instead.
  Error: Could not create the Java Virtual Machine.
  Error: A fatal exception has occurred. Program will exit.
  </code></pre>
  <p><a href="https://i.stack.imgur.com/RKceL.png" rel="nofollow noreferrer">(image of above error for reference)</a></p>
  <p><code>JAVA_HOME</code>, <code>ANDROID_HOME</code> environment  variables are set and I am able to use adb commands like adb devices etc well.
  I also added Java install directory to the PATH variable. Any suggestions?</p>