Otu esi etinye Java 16 (OpenJDK 16) na Fedora Linux

Java bụ ebumnuche n'ozuzu, klaasị, asụsụ mmemme multipurpose nke na-ewu ewu nke na-ewu ewu n'ihi nhazi nke inwe mmejuputa mmejuputa iwu dị nta, nke pụtara na koodu Java a chịkọtara nwere ike ịgba ọsọ na nyiwe niile na-akwado Java na-enweghị mkpa nchikota. Java dịkwa ngwa ngwa, nchekwa na ntụkwasị obi, yabụ. A na-eji ya maka ịmepụta ngwa Java na laptọọpụ, ebe data, consoles egwuregwu, supercomputers sayensị, ekwentị mkpanaaka, wdg.

N'ime nkuzi a, ị ga-amụta otu esi etinye Java 16 kacha ọhụrụ (OpenJDK 16) na Fedora Linux.

Prerequisites

  • OS akwadoro: Linux Fedora 34 (Ụdị ọhụrụ ga-arụkwa ọrụ)
  • Akaụntụ onye ọrụ: Akaụntụ onye ọrụ nwere sudo ma ọ bụ ohere mgbọrọgwụ.

Na-emelite Sistemụ Ọrụ

Melite gi Fedora Linux Sistemụ arụmọrụ iji hụ na ngwugwu niile dị adị adịla ugbu a:

sudo dnf update && sudo dnf upgrade -y

Advertisement


Wụnye Java 16 maka Fedora Linux

Nyochaa ma ọ bụrụ Java kwụsịrị

Nzọụkwụ mbụ bụ ịlele ma sistemụ arụmọrụ Fedora gị nwere ụdị Java ọ bụla etinyegoro. Iji mee nke a, jiri iwu a:

java -version

Ihe atụ mmepụta:

openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment 18.9 (build 11.0.12+7)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7, mixed mode, sharing)

Site na mmepụta Java, etinyere 11 (OpenJDK 11). Site na ndabara, sistemụ arụmọrụ Fedora Linux na-abịa na arụnyere Java.

Chọọ ebe nchekwa maka ụdị Java kacha ọhụrụ

Dị ka ọtụtụ ga-ama, Java 11 bụ ihe ochie ochie, na Fedora Linux bụ modul elu nwere ngwugwu ọhụrụ, ị nwere ike ịchọ ụdị dị iche iche site na iji dnf search iwu dị ka ndị a:

sudo dnf search openjdk

Ị ga-enweta nnukwu ndepụta nhọrọ. Na ịwụnye Java 16, ị ga-ahụ mkpado kacha ọhụrụ, nke hà nhata ụdị java ọhụrụ a na-enye.

Ihe Nlereanya:

Otu esi etinye Java 16 (OpenJDK 16) na Fedora Linux

Ị nwere ike iwunye ụdị Java ndị ọzọ, ma OpenJDK, na Oracle Java SE. Ụdị Fedora Linux 34 ọhụrụ OpenJDK 1.8, OpenJDK 11, na OpenJDK 16 dị.

Wụnye Java

Site na ndepụta, ị ga-ahụ java-kacha ọhụrụ-openjdk.x86_64; Nke a bụ ụdị OpenJDK kachasị ọhụrụ nke ị ga-achọ ime iji wụnye Java 16. Iji mee nke a, jiri iwu a:

sudo dnf install java-latest-openjdk.x86_64

Ihe atụ nke ihe ndabere nke a ga-etinye:

Otu esi etinye Java 16 (OpenJDK 16) na Fedora Linux

ụdị Y, wee pịa tinye igodo ịga n'ihu na nwụnye.

Ozugbo arụnyere, ị ga-achọ ịgbanwe site na Java 11 dị ugbu a gaa na Java 16 OpenJDK kachasị ọhụrụ ị rụnyere.

Iji mee nke a, jiri iwu a:

sudo alternatives --config java

Ihe atụ mmepụta:

Otu esi etinye Java 16 (OpenJDK 16) na Fedora Linux

Site na mmepụta n'elu, ị ga- ụdị 2 na pịa igodo ntinye ka ịhọrọ ụdị Java OpenJDK kachasị ọhụrụ (Java 16).

Ka ịlele ma ọ bụrụ na swap ahụ emela nke ọma, jiri iwu ụdị iji chọpụta:

java -version

Ihe atụ mmepụta:


openjdk version "16.0.2" 2021-07-20
OpenJDK Runtime Environment 21.3 (build 16.0.2+7)
OpenJDK 64-Bit Server VM 21.3 (build 16.0.2+7, mixed mode, sharing)

Ekele, ị wụnyela ụdị Java kachasị ọhụrụ dị ugbu a maka Fedora Linux.

Okwu na mmechi

N'ime nkuzi a, ị mụtala otu esi ebudata ma wụnye Java 16 (OpenJDK 16) ụdị kachasị ọhụrụ, yana nbudata na ụdị n'ọdịnihu yana itinye otu usoro maka sistemụ arụmọrụ Fedora 8 gị.

Idenye aha
Gwa nke
0 Comments
Inline nzaghachi
Lee echiche niile
0
Ga-ahụ n'anya gị echiche, biko okwu.x