Showing posts with label Installation Guide. Show all posts
Showing posts with label Installation Guide. Show all posts

Tuesday, 15 October 2024

JDK 11 Installation on Linux OS and Amazon EC2 Explained | Running JDK 11 on AWS EC2 or Linux OS

Join the Ram N Java Community! 🚀

Subscribe to get the latest Java, AWS, and Cloud tutorials delivered straight to you!

SUBSCRIBE ON YOUTUBE

Overview

Installing Java Development Kit (JDK) 11 on an Amazon EC2 instance or any Linux-based server is a fundamental step for Java developers. This guide will walk you through the process, from updating your system to verifying your installation.

Step 1: Update Your Linux System

Before installing any new software, it is a best practice to ensure your existing packages are up to date. This minimizes compatibility issues.

sudo yum update
sudo yum upgrade

Step 2: Download the JDK 11 Archive

Visit the Oracle JDK 11 download page and locate the Linux 64 compressed archive (ending in .tar.gz). You can download it directly to your server using wget or download it locally and transfer it via WinSCP.

  • Using WinSCP: Log in to your EC2 instance and drag the downloaded .tar.gz file into your home directory (e.g., /home/ec2-user).

Step 3: Extract JDK to /opt Directory

The /opt directory is a standard location for optional software packages. Extract your archive there:

sudo tar -xvf jdk-11.0.x_linux-x64_bin.tar.gz -C /opt

Verify the extraction by listing the contents of /opt:

ls /opt

Step 4: Set Environment Variables

To make Java available system-wide, you must configure the JAVA_HOME and PATH variables. Open the global profile file:

sudo nano /etc/profile

Scroll to the bottom and add these lines (ensure the path matches your extracted version):

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

Save (Ctrl+X, then Y, then Enter) and refresh your session:

source /etc/profile

Step 5: Verify Installation

Confirm that JDK 11 is correctly installed and active:

java -version
javac -version

You should see output indicating "java version 11.x.x".

Conclusion

Congratulations! You have successfully configured JDK 11 on your Amazon EC2 instance. You are now ready to run Java applications or set up a build environment for your projects.

Friday, 17 June 2022

How to install Gradle in Linux Operating System or Amazon EC2 Instance? | Gradle tutorial

🚀 Level Up Your Tech Skills! 🚀

Don't miss out on more easy-to-follow tutorials.

Subscribe to Ram N Java Now!

How to Install Gradle on Linux & EC2

Setting up your development environment shouldn't be a headache! Whether you're working on a local Linux machine or a cloud-based Amazon EC2 instance, getting Gradle up and running is a fundamental skill for any modern developer.

Step 1: Check for Java

Gradle runs on the Java Virtual Machine (JVM), so you must have Java installed first. You can check this by typing java -version in your terminal. Think of Java as the engine and Gradle as the specialized tool that runs on top of it!

Step 2: Download the Gradle Package

Next, we head over to the official Gradle website to grab the latest release. We typically use the wget command in Linux to download the "Binary-only" zip file directly to our server or local machine.

Step 3: Unzip and Configure

Once downloaded, we unzip the file into a specific directory (like /opt/gradle). This is like unpacking a new set of tools into your workshop so they are ready to use.

Step 4: Set the Environment Variables

This is the "secret sauce." By updating your PATH variable, you tell Linux exactly where the Gradle tool is located. This allows you to run the gradle command from anywhere in your terminal!

Step 5: Verification

Finally, run gradle -v. If you see the version number and a "Welcome to Gradle" message, congratulations! You’ve successfully mastered the installation.


Discover More Tutorials

Check out these other popular videos from the channel:

Monday, 21 September 2020

How to install MongoDB on Windows Operating System? - MSI Package | MongoDB Tutorial for Beginners

🚀 Master MongoDB with Ram N Java!

Unlock professional developer secrets. Subscribe to Ram N Java for the most simplified tech tutorials!

SUBSCRIBE FOR FREE

Setting Up MongoDB Using the MSI Package

Ready to start your NoSQL journey? The first step is getting MongoDB up and running on your local machine. In this tutorial, we focus on the **MSI (Windows Installer) package**, which is the easiest and most recommended way for beginners to install MongoDB on a Windows Operating System.

Why Choose the MSI Installer?

The MSI package simplifies the installation process by providing a graphical wizard. It handles most of the heavy lifting for you, including:

  • Automatic Setup: It creates the necessary directories and copies files to the right places.
  • Service Configuration: It can automatically set up MongoDB as a Windows Service, so it starts whenever your computer does.
  • Compass Integration: Modern MSI installers often give you the option to install MongoDB Compass (the GUI tool) at the same time.

Step-by-Step Installation Guide

Follow these simple steps to get MongoDB installed on your system:

  • Download: Visit the official MongoDB website and download the Windows MSI installer.
  • Run Installer: Double-click the MSI file and follow the setup wizard. Choose the "Complete" installation type for all features.
  • Service Settings: Keep the default setting to "Run service as Network Service user" to ensure it operates correctly in the background.
  • Path Configuration: Once installed, remember to add the MongoDB bin folder to your system Environment Variables so you can run commands from any terminal!

You're Ready to Code!

With MongoDB successfully installed via the MSI package, you now have a powerful NoSQL database at your fingertips. From here, you can start creating databases, collections, and building modern, scalable applications. Keep exploring our other tutorials to master the world of MongoDB!


More MongoDB Tutorials from Ram N Java:

How to install MongoDB on Windows Operating System? - ZIP Package | MongoDB Tutorial for Beginners

🚀 Master MongoDB with Ram N Java!

Don't miss out on high-value tutorials! Subscribe to Ram N Java for simplified coding guides.

SUBSCRIBE FOR FREE

Setting Up MongoDB via the ZIP Package

Are you looking for a portable and flexible way to install MongoDB? While the MSI installer is common, using the ZIP package gives you full control over where your files live without complex installation wizards. In this tutorial, we’ll show you exactly how to set up MongoDB on Windows using the ZIP method—perfect for developers who want a custom setup!

Why Choose the ZIP Method?

The ZIP package is ideal for users who want to avoid making permanent changes to their system settings or who need to run multiple versions of MongoDB. It’s essentially a "plug-and-play" version that allows you to extract and run the database directly from any folder.

Step-by-Step Installation

Follow these easy, beginner-friendly steps to get MongoDB running:

  • Download: Go to the MongoDB download center and select the "ZIP" format for Windows.
  • Extract: Right-click the downloaded folder and extract it to a location of your choice (e.g., C:\mongodb).
  • Create Data Folder: MongoDB needs a place to store data. By default, it looks for C:\data\db. Make sure to create these folders manually!
  • Run Mongod: Navigate to the bin folder in your terminal and run mongod.exe to start the database server.

Environment Variables

To make your life easier, add the path to your bin folder to your system's Environment Variables. This allows you to run MongoDB commands from any command prompt window without navigating to the specific folder every time!

Ready to Build!

Now that you have MongoDB set up via the ZIP package, you have a powerful NoSQL database ready for action. Whether you're building a small app or a large-scale project, you're now equipped with a flexible database foundation. Happy coding!


Check Out More from Ram N Java:

Tutorials