5/31/2023 0 Comments Apt install java![]() Similarly, add links for other executable files (e.g., jarsigner, jlink, javadoc) as you need.ī.) Next, run the commands below one by one, and type number to select Java JDK 20 as default. To set it as default, do the following 2 steps one by one.Ī.) Create symbolic links for the executable files: sudo update-alternatives -install /usr/bin/java java /usr/lib/jvm/jdk-20/bin/java 1 sudo update-alternatives -install /usr/bin/javac javac /usr/lib/jvm/jdk-20/bin/javac 1 sudo update-alternatives -install /usr/bin/jar jar /usr/lib/jvm/jdk-20/bin/jar 1 It installs the language files into ‘ /usr/lib/jvm/jdk-20/‘ directory. Then, extract the tarball to that directory via: sudo tar -zxf ~/Downloads/jdk-20_linux-aarch64_ -C /usr/lib/jvm/ 3. ![]() deb in file manager to install it via Ubuntu Software App.įor ARM device, run command to create ‘/usr/lib/jvm’ directory in case it does not exist: sudo mkdir -p /usr/lib/jvm Once you downloaded the package, open terminal (Ctrl+Alt+T) and run the command below to install the deb package: sudo apt install ~/Downloads/jdk-20_linux-圆4_bin.deb deb package for modern PC and laptops, or tarball for ARM cpu architecture.
0 Comments
Leave a Reply. |