DEV Community

Ayushnita
Ayushnita

Posted on

Install java in ubuntu using SDK

Are you a java/kotlin Developer, it is very important to maintain all its java versions and use them accordingly and it is very hard and want to maintain it, then this video is for you.
In this video, I try to explain how sdkman helps us to install, maintain and use different JDK tools for the Linux system.

To install sdkman you require to run the below commands:
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"

once sdkman verify its version using

1.sdk version

you are ready to go, java is a single command from you let's grab it

1.sdk i java {version}

really done!!!

yes you are now if you want you can list all different version for java using

1.sdk ls java

you can install another version on java too and to use that only run

1.sdk use java {version}

In the next video, we saw how to configure your IDE.

Important Links:
https://sdkman.io/
https://www.oracle.com/java/technologies/java-se-support-roadmap.html
https://youtu.be/ENFx_sZpHko

$150K MiniMax AI Agent Challenge — Build Smarter, Remix Bolder, Win Bigger!

Join the $150k MiniMax AI Agent Challenge — Build your first AI Agent 🤖

Developers, innovators, and AI tinkerers, build your AI Agent and win $150,000 in cash. 💰

Read more →

Top comments (0)

Java-ready auth and billing that just works

Java-ready auth and billing that just works

Stop building auth from scratch. Kinde handles authentication, user management, and billing so you can focus on what matters - shipping great products your users will love.

Get a free account

👋 Kindness is contagious

Discover fresh viewpoints in this insightful post, supported by our vibrant DEV Community. Every developer’s experience matters—add your thoughts and help us grow together.

A simple “thank you” can uplift the author and spark new discussions—leave yours below!

On DEV, knowledge-sharing connects us and drives innovation. Found this useful? A quick note of appreciation makes a real impact.

Okay