Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
5 views
in Java by (13.1k points)
Can anyone help me how I can able to install JDK 10 in Ubuntu?

1 Answer

0 votes
by (26.7k points)

Basically, you can follow these commands to install JDK 10 on your Ubuntu Machine:

sudo add-apt-repository ppa:linuxuprising/java

sudo apt-get update

sudo apt-get install oracle-java10-installer

Once done, you can set this as a default by using this command:

sudo apt-get install oracle-java10-set-default

After that, you can verify this, by using this command:

$ java -version

java version "10.0.1" 2018-04-17

Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)

Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

I hope this will help.

Want to become a Java Expert? Join Java Course now!!

Want to know more about Java? Watch this video on Java Tutorial for Beginners | Java Programming:

Related questions

0 votes
1 answer
asked Feb 6, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
0 votes
1 answer
+6 votes
2 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...