top of page

Install JDK and Gradle in Redhat Server

Writer's picture: RodrigoRodrigo


How to Download and Install JDK 11?

1. Check if Java is installed in your local system.

  • To check if Java is installed in your system:

  • Go to your command prompt.

  • Type Java -version.

If Java is installed, you can go forward with the Gradle Installation; else, you can follow below steps for JDK (Java Development Kit) installation.


Install Open JDK 11 on Redhat server


Reference URL: https://access.redhat.com/documentation/en-us/openjdk/11/html/installing_and_using_openjdk_11_on_rhel/installing-openjdk11-on-rhel8



yum install java-11-openjdk

Check Java Version:

java -version


How to Download and Install Gradle?

Download the latest version of Gradle from the link available at https://gradle.org/install/. In the reference page, click on the Complete Distribution link. This step is common for any platform. For this you will get the complete distribution file into your Downloads folder.



Install Gradle older versions on Redhat server



wget https://services.gradle.org/distributions/gradle-7.3.3-bin.zip

unzip -d /opt/gradle gradle-7.3.3-bin.zip

ls /opt/gradle/gradle-7.3.3


Setup Environment variable for Gradle


export GRADLE_HOME=/opt/gradle/gradle-7.3.3

******************************OR********************************


nano /etc/profile.d/gradle.sh

vi gradle.sh

chmod +x /etc/profile.d/gradle.sh

source /etc/profile.d/gradle.sh

Gradle version check:

gradle -v

 
 
 

Comentários


bottom of page