


In May 2017, Google announced support for a new Kotlin programming language. However, they run on Android's own Java Virtual Machine, called Dalvik Virtual Machine (DVM) (instead of JDK's JVM) which is optimized to operate on the small and mobile devices.

Android applications are written in Java. Android PlatformĪndroid is based on Linux with a set of native core C/C++ libraries. The latest Android supports Phone/Tablet, TV, Wear (watch and glass), Automobile and Internet of things (IoT). Android competes with Apple's iOS (for iPhone/iPad), Microsoft's Windows Phone, and many other proprietary mobile OSes. In X Server, I will use “ nano” editor.Android is an Operating System for mobile devices developed by Google in 2007, which is built upon a Linux kernel. At first, I copy those two lines to notepad.

$ cat > /etc/environment JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 > JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre > EOL bash: /etc/environment: Permission deniedįailed! You need “ sudo” to override the permission. Good, let’s find java where it is installed /usr/lib with find command:įind /usr/lib -path ‘*java’ $ find /usr/lib -path '*java' /usr/lib/jvm/java-8-openjdk-amd64/bin/java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java sudo apt-get install openjdk-8-jdkĪfter the installation, let’s check again. Open the terminal, java -version Command 'java' not found, but can be installed with: sudo apt install default-jre # version 2:1.11-72, or sudo apt install openjdk-11-jre-headless # version 11.0.7+10-3ubuntu1 sudo apt install openjdk-13-jre-headless # version 13.0.3+3-1ubuntu2 sudo apt install openjdk-14-jre-headless # version 14.0.1+7-1ubuntu1 sudo apt install openjdk-8-jre-headless # version 8u252-b09-1ubuntu1 So you shall install Java 8 in the Ubuntu, too. The Android Studio is using Java 8 as its entry-level programming language.
