title: how can I install java runtime on Android device?
body: <p>I need to install some packages and <strong><em>Linux programs on my android devices</em></strong>. for example I want to use something similar <strong><em>YUM or get-apt</em></strong> command (<em>I know these are Linux Commands</em>) through windows powershell connected to my android device. but it does not recognize these commands. <strong><em>even ADB does not work</em></strong>, e.g. <strong><em>adb update -y</em></strong> is unknown command. How can i do this, is it possible. if the android kernel is linux so I guess there must be a way. I checked this but didnt help me: </p>
  
  <p><a href="https://stackoverflow.com/questions/36539308/is-it-possible-to-install-the-jdk-on-an-android-device">Is it possible to install the JDK on an android device?</a></p>
  
  <p>Thanks</p>
  
  <p>EDITED: I used the link below , thanks to my friend for good answer. this is the command i used :</p>
  
  <p>pkg install wget &amp;&amp; wget <a href="https://raw.githubusercontent.com/MasterDevX/java/master/installjava" rel="noreferrer">https://raw.githubusercontent.com/MasterDevX/java/master/installjava</a> &amp;&amp; bash installjava</p>
  
  <p>BUT when i run java command it says "Killed". No Idea!</p>