Media Informasi

Media Informasi harian terkini

  • Home
Home » 2020 , Android , aplikasi , Coding , Linux » Cordova build error “Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.2” Ubuntu 18.04

Cordova build error “Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.2” Ubuntu 18.04

  aditya    

 I will put in one place all the information:

  • Version 8 of Java JDK. I was unable to find quickly the openjdk-8 version, so I decided to install Oracle version
  • Setting JAVA_HOME is not needed

    1. Proceed to

https://www.oracle.com/java/technologies/javase-jdk8-downloads.html

  1. Download:
jdk-8u251-linux-x64.tar.gz
  1. Login with oracle account

  2. Uncompress it in /opt

sudo cp ~/Desktop/jdk-8u251-linux-x64.tar.gz /opt
cd /opt
sudo tar xfz jdk-8u251-linux-x64.tar.gz
sudo ln -s jdk1.8.0_251 java
  1. Make java binary point to desired SDK

5.1. Install alternative

sudo update-alternatives --install /usr/bin/java java /opt/java/bin/java 2

5.2. Activate it

sudo update-alternatives --config java

5.3. Select the entry added in step 4.1.

There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                         Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-14-openjdk-amd64/bin/java   1411      auto mode
  1            /opt/java/bin/java                            2         manual mode
  2            /usr/lib/jvm/java-11-openjdk-amd64/bin/java   1111      manual mode
  3            /usr/lib/jvm/java-14-openjdk-amd64/bin/java   1411      manual mode

In this case type 1 and press Enter

5.4. Test

Type:

java -version

Expected output similar to:

java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)
  1. Make javac binary point to desired SDK

6.1. Install alternative

sudo update-alternatives --install /usr/bin/javac javac /opt/java/bin/javac 2

6.2. Activate it

sudo update-alternatives --config javac

6.3. Select the entry added in step 6.1.

There are 2 choices for the alternative javac (providing /usr/bin/javac).

  Selection    Path                                          Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-14-openjdk-amd64/bin/javac   1411      auto mode
* 1            /opt/java/bin/javac                            2         manual mode
  2            /usr/lib/jvm/java-14-openjdk-amd64/bin/javac   1411      manual mode

In this case type 1 and press Enter

6.4. Test

Type:

javac -version

Expected output similar to:

javac 1.8.0_251

if the output is similar to the output of "java -version", make sure you've written the correct command in section 6.1 with the missing "c" of the original post.

Label: 2020, Android, aplikasi, Coding, Linux

Related Posts

  • Cara Menggabungkan dan Memecah File Lewat Terminal di
  • Menggunakan VI Teks Editor
  • 6 Rekomendasi Channel Youtube Pemrograman Terbaik Dan Populer
  • Disney+ Hotstar Bakal Bersaing dengan Netflix di Indonesia
  • Install PHP (5.6, 7.0, 7.1) on Ubuntu Using PPA

Arsip Blog

Popular Posts

  • Contoh soal dan pembahasan Kalkulus 1 Integral
  • Membuat Login Form dengan PHP [Level Multi User]
  • Vocaloid 2 Hatsune Miku Full [Free Download]
  • Cara Import Database Ke Phpmyadmin yang File Nya *.opt *.frm *.MYD *.MYI
  • Cara Membuat Program Olah Data Sederhana menggunakan Netbean
  • Cara Menggunakan SSH di Android
  • Tutorial Mencari BUGS Host , Website , Server
  • Resident Evil 6 (2013) Full Version Pc Game Download Full Crack Patch iso
  • After "Submit", redirect back to previous page php
  • Buat text bergerak segala arah

Label

  • Trik (49)
  • software (49)
  • Info (47)
  • PHP (47)
  • tutorial (27)
  • Website (24)
  • Belajar (23)
  • Java (12)
  • Algoritma (11)
  • games (11)
  • Teknologi (9)
  • SEO (8)
  • berita (8)
  • film (8)
  • Design (6)
  • database (5)
  • promo (2)

Pengunjung

About

SEO Starter is SEO and Mobile Friendy Blogger Template. Responsive Sesuai dengan Rekomendasi Google

Web Links

  • Blogger Platform
  • CMS WordPress
  • Facebook
  • Microblogging
  • Manchester United

Follow by Email

Subsribe to get post update from this blog in your email inbox.

Copyright © 2025 Media Informasi. All rights reserved. Template by Romeltea Media