Showing posts with label JDK 23. Show all posts
Showing posts with label JDK 23. Show all posts

Wednesday, 6 November 2024

How to Uninstall JDK 23 on Linux OS or Amazon EC2 | Uninstall JDK 23 on Linux OS or EC2

🚀 Master Linux & Java!

Subscribe to Ram N Java for the most simplified cloud and coding tutorials!

SUBSCRIBE TO OUR CHANNEL

How to Uninstall JDK 23 on Linux or Amazon EC2

Whether you're managing a local Linux machine or an Amazon EC2 instance, there are times when you need to remove an older version of Java to make room for a new one. Uninstalling JDK 23 is simple if you follow the right commands. Let's get it done!

Step 1: Check Your Java Version

Before you start, confirm that JDK 23 is currently installed and active. Open your terminal and type:

java -version

Step 2: Find and Remove the JDK Package

Depending on your Linux distribution (like Ubuntu, Amazon Linux, or CentOS), the command may vary slightly. Most modern systems use yum or apt.

Use the following command to search for and remove the JDK 23 package:

  • For Amazon Linux/CentOS: Use sudo yum remove java-23-openjdk.
  • For Ubuntu/Debian: Use sudo apt-get remove openjdk-23-jdk.

Step 3: Verify Uninstallation

After the removal process is complete, run the version check again. You should see a message stating that the command was not found or it may show a different Java version if you have multiple versions installed.

💡 Pro Tip:

If you are using Amazon EC2, remember to check your environment variables (like JAVA_HOME) in your .bash_profile or .bashrc file to ensure no old paths are left behind!

Tuesday, 5 November 2024

How to Install JDK 23 on Linux OS or Amazon EC2 | JDK 23 Installation on Linux OS or EC2

🚀 Master Java & AWS!

Subscribe to Ram N Java for the most simplified tech tutorials!

SUBSCRIBE TO OUR CHANNEL

How to Install JDK 23 on Linux or Amazon EC2

Setting up JDK 23 on a Linux server or an Amazon EC2 instance is a core skill for any developer. This guide will walk you through the process step-by-step, from updating your system to verifying your installation.

Step 1: Update Your Linux System

Before installing new software, it's a best practice to ensure your existing packages are up to date. Run these commands in your terminal:

sudo yum update -y
sudo yum upgrade -y

Step 2: Download the JDK 23 Archive

Visit the Oracle JDK download page and copy the link for the Linux x64 Compressed Archive. Then, use the wget command to download it directly to your server:

wget [PASTE_THE_DOWNLOAD_LINK_HERE]

Step 3: Extract the JDK

Once the download is complete, extract the files to the /opt directory, which is the standard place for optional software packages:

sudo tar -xvf jdk-23_linux-x64_bin.tar.gz -C /opt

Step 4: Set Environment Variables

To make Java available system-wide, you need to set the JAVA_HOME and PATH variables. Open the /etc/profile file:

sudo nano /etc/profile

Add these lines at the end of the file:

export JAVA_HOME=/opt/jdk-23.0.1
export PATH=$PATH:$JAVA_HOME/bin

Then, apply the changes with: source /etc/profile

Step 5: Verify the Installation

Finally, check if everything is working by checking the Java version:

java -version
javac -version

📥 Download Free Resources!

I've included the PowerPoint presentation and Java source code for this tutorial in the video description on YouTube. Head over there to grab your copies!

Thursday, 24 October 2024

How to Install JDK 23 on Windows 11 | JDK 23 Installation on Windows 11

🚀 Start Your Coding Journey! 🚀

Ready to build your first Java application? Join the Ram N Java family for simple, step-by-step tech guides and expert Java tutorials!

SUBSCRIBE TO THE CHANNEL

Setting Up Java JDK 23 on Windows 11

The Java Development Kit (JDK) is the essential toolset every developer needs to write and run Java programs. With the release of JDK 23, setting up your environment correctly is more important than ever. In this guide, we make the installation process easy and foolproof!

1. Downloading the Correct Version

First, head over to the official Oracle website. You’ll want to download the x64 Installer for Windows. This is the executable file that will do most of the heavy lifting for you.

2. The Installation Process

Once the download is complete, run the installer. The default installation path is usually C:\Program Files\Java\jdk-23. We recommend keeping this path as it is, as it makes setting up your environment variables much easier later on!

3. Configuring Environment Variables

This is the step where most beginners get stuck! To make Java work from any command prompt, you must add the "bin" folder of your JDK to the System Path.

  • Open Edit the system environment variables.
  • Click Environment Variables.
  • Under System Variables, find Path and click Edit.
  • Add the new path pointing to your JDK bin folder.

Keep Exploring with Ram N Java!

Master more tech and AI skills with these top tutorials:

Tutorials