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

Sunday, 20 October 2024

Uninstalling JDK 17 on Linux OS (Amazon EC2 Cloud) | How to Uninstall JDK 17 on Linux (Amazon EC2)

🚀 Become an AWS & Java Pro!

Subscribe to Ram N Java for simplified, expert-led tech tutorials!

SUBSCRIBE TO MY CHANNEL

How to Uninstall JDK 17 on Linux & Amazon EC2

Managing software versions on a server is a critical skill for any developer or cloud engineer. If you need to remove JDK 17 from your Linux machine or an Amazon EC2 instance, this tutorial will guide you through the process quickly and safely.

Step 1: Check Your Installed Java Version

First, confirm that JDK 17 is the version currently active on your system. Run the following command in your terminal:

java -version

If you have multiple versions, you can see all paths using: sudo update-alternatives --config java.

Step 2: Uninstall the JDK Package

Depending on how you installed JDK 17, use the appropriate package manager command to remove it:

  • For Amazon Linux/CentOS (YUM): sudo yum remove java-17-amazon-corretto-devel
  • For Ubuntu/Debian (APT): sudo apt-get remove openjdk-17-jdk

Step 3: Remove Leftover Environment Variables

It's important to clean up your configuration files to prevent path errors later. Open your profile settings:

sudo nano /etc/profile

Locate any lines that set JAVA_HOME to the JDK 17 path, delete them, save the file, and then refresh your environment:

source /etc/profile

Step 4: Verify the Uninstallation

Finally, run the version check once more to ensure JDK 17 has been successfully removed:

java -version

💡 Pro Tip for Cloud Learners:

I always share the PowerPoint presentation and source code used in my videos! You can find the direct download links in the YouTube video description above.

Tuesday, 15 October 2024

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

🚀 Join the Ram N Java Community!

Subscribe now for the best AWS, Cloud, and Java tutorials!

SUBSCRIBE TO OUR CHANNEL

Mastering JDK 17 Installation on Linux & Amazon EC2

Installing JDK 17 is a critical first step for building modern Java applications on the cloud. Whether you are using a local Linux server or an Amazon EC2 instance, this guide will show you how to get it done efficiently using the command line.

Step 1: System Preparation

Before installing new software, always update your package repository to ensure you have the latest security patches and metadata. Execute these commands:

sudo yum update -y
sudo yum upgrade -y

Step 2: Download the JDK 17 Archive

We will use wget to download the Linux x64 Compressed Archive directly from Oracle's servers. This method gives you total control over the installation location.

wget [ORACLE_JDK_17_DOWNLOAD_LINK]

Step 3: Installation & Directory Setup

Extract the downloaded .tar.gz file into the /opt directory. The /opt folder is the standard place for third-party software on Linux.

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

Step 4: Configure the Environment

To make the java and javac commands work from any folder, you must edit the system profile. Open /etc/profile and add your new JAVA_HOME path:

export JAVA_HOME=/opt/jdk-17.0.x
export PATH=$PATH:$JAVA_HOME/bin

Reload the configuration by typing: source /etc/profile

Step 5: Final Check

Confirm the installation was successful by checking the version number in your terminal:

java -version

📥 Grab Your Free Study Materials!

I provide the PowerPoint presentation and full source code for this tutorial! Check out the download links in the YouTube video description to get them for free.

Saturday, 21 September 2024

How to Uninstall JDK 17 on Windows 11 | Java JDK 17 Uninstallation on Windows

🚀 Level Up Your Java Skills!

Subscribe to Ram N Java for easy-to-follow coding tutorials!

SUBSCRIBE TO OUR CHANNEL

How to Uninstall JDK 17 on Windows 11

Whether you need to upgrade to a newer version or simply want to clean up your development environment, uninstalling the Java Development Kit (JDK) 17 on Windows 11 is a straightforward process. Follow this simple, step-by-step guide to ensure it's removed correctly.

Step 1: Using the Control Panel

The most reliable way to remove software on Windows is through the standard uninstallation tool:

  • Open the Start Menu and type "Control Panel."
  • Go to Programs and then click Programs and Features.
  • Scroll down the list until you find "Java(TM) SE Development Kit 17".
  • Right-click it and select Uninstall. Follow the prompts to finish.

Step 2: Clean Up Environment Variables

After uninstalling the software, it's a good idea to remove any leftover paths to prevent system errors:

  1. Search for "Edit the system environment variables" in the Start Menu.
  2. Click the Environment Variables button.
  3. Under "System variables," look for JAVA_HOME. If it points to JDK 17, you can delete it.
  4. Also check the Path variable and remove any lines related to JDK 17.

Step 3: Verify the Removal

To make sure everything is gone, open your Command Prompt (cmd) and type:

java -version

If uninstalled correctly, Windows should tell you that 'java' is not recognized as an internal or external command.

💡 Need More Help?

If you're planning to install a different version of Java, check out my other tutorials on the Ram N Java YouTube channel for full installation and setup guides!

Friday, 20 September 2024

How to Install JDK 17 on Windows OS: Step-by-Step Guide | Java JDK 17 Installation on Windows 11

🚀 Level Up Your Java Skills! 🚀

Building your next big project? Join the Ram N Java family for the simplest tech guides and professional Java insights!

SUBSCRIBE TO THE CHANNEL

Mastering Java JDK 17 Installation

Java JDK 17 is a Long-Term Support (LTS) version, making it the preferred choice for developers who want stability and performance. In this guide, we walk you through the complete setup on Windows 11, ensuring your development environment is rock-solid.

1. Getting the JDK 17 Installer

Head over to the Oracle website and locate the JDK 17 downloads. For Windows, the x64 Installer is your best bet—it’s a simple executable that handles the file extraction and basic setup for you.

2. Step-by-Step Installation

Run the installer and follow the wizard. While you can change the installation folder, sticking with the default (usually in C:\Program Files\Java\) is often the best way to avoid pathing headaches later.

3. Setting the Path Variable

This is the most critical step. To run Java from any Command Prompt window, you must add the bin folder path to your System Environment Variables.

  • Open "Edit the system environment variables."
  • Under "System Variables," find Path and click Edit.
  • Click "New" and paste the path to your JDK 17 bin folder.
  • Confirm your setup by typing java -version in the Command Prompt!

Keep Growing with Ram N Java!

Check out these other essential tutorials to boost your tech knowledge:

Tutorials