Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4446

how to downgrade java 22.0.1 to java 19?

$
0
0

runing lsb_release -a I get:

No LSB modules are available.Distributor ID: UbuntuDescription:    Ubuntu 22.04.4 LTSRelease:    22.04Codename:   jammy

when I run:gradle -vI get:

------------------------------------------------------------Gradle 7.6.4------------------------------------------------------------Build time:   2024-02-05 14:29:18 UTCRevision:     e0bb3fc8cefad8432c9033cdfb12dc14facc9dd9Kotlin:       1.7.10Groovy:       3.0.13Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023JVM:          22.0.1 (Oracle Corporation 22.0.1+8-16)OS:           Linux 6.5.0-35-generic amd64

and runing:java -version

java version "22.0.1" 2024-04-16Java(TM) SE Runtime Environment (build 22.0.1+8-16)Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)

It turns out that grab 7.6.4 is not compatible with java 22, I need java 19, then I tried to remove java 22 to install java 19 later but I couldn't.

when i run sudo apt autoremove openjdk-22-jreI get:

Leyendo lista de paquetes... HechoCreando árbol de dependencias... HechoLeyendo la información de estado... HechoE: No se ha podido localizar el paquete openjdk-22-jre

when i run sudo apt-get purge openjdk-22I get:

Leyendo lista de paquetes... HechoCreando árbol de dependencias... HechoLeyendo la información de estado... HechoE: No se ha podido localizar el paquete openjdk-22

running:sudo dpkg --list | grep -i jre

I get:

ii  default-jre                                       2:1.11-72build2                         amd64        Standard Java or Java compatible Runtimeii  default-jre-headless                              2:1.11-72build2                         amd64        Standard Java or Java compatible Runtime (headless)ii  openjdk-11-jre:amd64                              11.0.22+7-0ubuntu2~22.04.1              amd64        OpenJDK Java runtime, using Hotspot JITii  openjdk-11-jre-headless:amd64                     11.0.22+7-0ubuntu2~22.04.1              amd64        OpenJDK Java runtime, using Hotspot JIT (headless)ii  openjdk-8-jre:amd64                               8u402-ga-2ubuntu1~22.04                 amd64        OpenJDK Java runtime, using Hotspot JITii  openjdk-8-jre-headless:amd64                      8u402-ga-2ubuntu1~22.04                 amd64        OpenJDK Java runtime, using Hotspot JIT (headless)

Viewing all articles
Browse latest Browse all 4446

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>