Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

How do i install and setup open jdk from in ubuntu from snapcraft

$
0
0

System

ubuntu 20.04 lts

I'm just starting with ubuntu

Installed

I have installed java from here https://snapcraft.io/openjdk

Command sudo snap install openjdk

Installation was successfull

Checked version

rahul@rahul:~$ java -versionCommand 'java' not found, but can be installed with:sudo apt install default-jre              # version 2:1.11-72, orsudo apt install openjdk-11-jre-headless  # version 11.0.11+9-0ubuntu2~20.04sudo apt install openjdk-13-jre-headless  # version 13.0.4+8-1~20.04sudo apt install openjdk-14-jre-headless  # version 14.0.2+12-1~20.04sudo apt install openjdk-8-jre-headless   # version 8u292-b10-0ubuntu1~20.04

Checked for installation

rahul@rahul:~$ sudo snap install openjdksnap "openjdk" is already installed, see 'snap help refresh'

How can i fix this?


Viewing all articles
Browse latest Browse all 5956

Trending Articles



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