Тёмный

How to Install Gradle on Windows 11 

Begin Secure
Подписаться 2,9 тыс.
Просмотров 24 тыс.
50% 1

Are you looking to install Gradle on Windows 11 and build a Spring Boot application? Look no further! In this comprehensive video, we will guide you through the entire process, step by step.
First, we'll verify your Java installation by checking the version. If you don't have Java installed, we have a separate video on installing it on Windows 11, so make sure to check that out and come back to complete the Gradle installation.
There are several ways to install Gradle, including using package managers like Chocolately or tools like SDKman. In this video, we'll demonstrate the manual installation process. We'll search for the latest Gradle version, click on the official installation link, and download the binary file. Don't worry if the version has changed by the time you watch this video; simply choose the latest version available.
To ensure the integrity of the downloaded file, we'll also verify the SHA256 checksum. We'll show you how to compare the server's checksum with the one computed locally, giving you confidence that the file was not corrupted during download.
After verifying the file, we'll proceed with the installation. We'll extract the downloaded zip file into a designated directory and add the location of the "bin" directory to our system's path. This step ensures that Gradle can be accessed from anywhere on your Windows 11 system.
Once the installation is complete, we'll open a new command prompt and verify the Gradle installation by running a simple command. You'll see the version of Gradle you installed, confirming a successful installation.
But wait, there's more! We'll take it a step further and demonstrate how to build a Spring Boot application using Gradle. We'll generate a simple Spring Boot project using the start.spring.io website, adding the necessary dependencies for a web application.
After downloading the project, we'll navigate to the project directory and explore the generated code. We'll introduce you to the essential "build.gradle" file, which defines the project's settings, dependencies, and tasks.
To demonstrate the power of Gradle, we'll run the "gradle tasks" command, showcasing the available tasks for your project. We'll focus on the important "build" task, which assembles and builds your project.
Once the code is compiled and tested, we'll package the application as an executable JAR file using the built-in "bootJar" task provided by the Spring Boot Gradle plugin. This task packages your application and its dependencies into a standalone, runnable JAR file.
After executing the task, we'll explore the resulting files and directories, including the executable JAR file. We'll demonstrate how to run the application from the command line using the "java -jar" command, and you'll see the web application startup on the default port.
#gradle #java #springboot

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 63   
@alexandre_noguez
@alexandre_noguez Год назад
That's amazing the way you teach. :) Congratulations for this great tutorial
@beginsecure
@beginsecure Год назад
I appreciate your kind comments!! Thanks for watching!!
@UserGram-1
@UserGram-1 2 месяца назад
What a smooth explanation, Thank you my friend for that
@beginsecure
@beginsecure 2 месяца назад
Thank you! and thanks for watching!
@mindlessmeat4055
@mindlessmeat4055 11 месяцев назад
I found your page trying to install Maven, you have so many helpful videos. Thank you so much.
@beginsecure
@beginsecure 11 месяцев назад
Thank you for the kind words and thanks for watching!!
@eymirnabilmakarim4897
@eymirnabilmakarim4897 10 месяцев назад
Thank you very much for providing a detailed explanation
@beginsecure
@beginsecure 10 месяцев назад
Glad it was helpful!
@syedshahid4027
@syedshahid4027 11 месяцев назад
This was a fantastic tutorial, thank you!
@beginsecure
@beginsecure 11 месяцев назад
You're very welcome! Glad it helped!!
@pedromoura96
@pedromoura96 Год назад
It works! thanks bro!
@beginsecure
@beginsecure Год назад
You're welcome!! Thanks for watching!
@MyBooPlays-rb2sf
@MyBooPlays-rb2sf 2 месяца назад
YOU ARE THE BEST
@beginsecure
@beginsecure 2 месяца назад
Thanks and thanks for watching!
@edsonxrego2
@edsonxrego2 5 месяцев назад
Thank you very much!
@beginsecure
@beginsecure 5 месяцев назад
You're welcome, thanks for watching!
@jreamscape
@jreamscape 2 месяца назад
thanks bruh
@beginsecure
@beginsecure 2 месяца назад
Happy to help. Thanks for watching!
@Nini-vw2zn
@Nini-vw2zn 7 месяцев назад
thank you:)
@beginsecure
@beginsecure 7 месяцев назад
You're welcome! Thanks for watching!
@SanjaneshGanesh
@SanjaneshGanesh Год назад
tomcat server (10.1.8) must be installed? If needed How to check whether its installed or not if not installed how to install?
@beginsecure
@beginsecure Год назад
No, Tomcat is not a requirement for Gradle. To check if it's installed, Open a command prompt or terminal. Type catalina version or catalina.bat version (on Windows) and press Enter. If Tomcat is installed, you should see details about its version. If not, you'll get an error or command not found message. I'm a little behind on vids, seems like a nice quick topic. Look for a video soon on installing it.
@arunavadebnath
@arunavadebnath 4 месяца назад
thank you
@beginsecure
@beginsecure 4 месяца назад
You're welcome and thank you for watching!
@Chillbear47
@Chillbear47 8 месяцев назад
Initially it didn't work for me, but then I switched path to system variables and then it worked.
@beginsecure
@beginsecure 8 месяцев назад
Thank you for sharing your experience! I'm glad to hear you were able to resolve the issue by adjusting your system variables. Could you please provide more details about the specific changes you made? This information could be incredibly helpful to other viewers who might face similar challenges. Your contribution to improving the community's understanding is highly valued!
@jonathanleibovici9988
@jonathanleibovici9988 2 месяца назад
at 1.47 i see that your file matches mine is not i don't know if i should continue did i make a mistake?
@beginsecure
@beginsecure 2 месяца назад
So in my video, I'm installing 8.1.1 which was the latest when I recorded the video. I just looked this morning and 8.9 is the latest (gradle.org/releases/) That's totally fine, 8.9 is what you should install. Just follow the steps I outline, the installation should remain the same. Please do write back if you have any more questions. Cheers!
@DarkSlayerAA
@DarkSlayerAA Год назад
Thanks
@beginsecure
@beginsecure Год назад
Appreciate you watching!!
@ChosenTechies
@ChosenTechies 3 месяца назад
i did everything correctly but when i but this to cmd gradle -V it says 'gradle' is not recognized as an internal or external command, operable program or batch file.
@ChosenTechies
@ChosenTechies 3 месяца назад
found the error i forgot to save enviroment varible
@beginsecure
@beginsecure 3 месяца назад
Great job being persistent and finding the issue.
@toast5425
@toast5425 Месяц назад
@@beginsecure die
@shaikhfatema6
@shaikhfatema6 4 месяца назад
While downloading gradle tasks , it gives error What should I do ?
@beginsecure
@beginsecure 4 месяца назад
When you encounter an error while downloading Gradle tasks on Windows 11, here are a few steps to troubleshoot: 1) Make sure Gradle is properly installed by running gradle -v in the command prompt. 2) Ensure the JAVA_HOME environment variable is set correctly and points to your JDK installation. 3) If you're behind a firewall or proxy, configure Gradle to use the correct proxy settings by editing the gradle.properties file. 4) Sometimes clearing the Gradle cache can help. You can do this by deleting the .gradle directory in your user home directory. If the issue persists, you might want to share the specific error message for more targeted assistance. Thanks for watching!
@shaikhfatema6
@shaikhfatema6 4 месяца назад
@@beginsecure OK I'll try .
@nizarnurfalah5001
@nizarnurfalah5001 3 месяца назад
my gradle build failed how can i fix it
@beginsecure
@beginsecure 2 месяца назад
Sorry to hear that your Gradle build failed. Some things to check: 1 Checking your Gradle version compatibility. 2 Ensuring all dependencies are correctly specified. 3 Looking for any specific error messages in the build output. If you share more details about the error message, I might be able to help further!
@PotoVRREGAYGSY
@PotoVRREGAYGSY Месяц назад
is java version "1.8.0_421" good
@beginsecure
@beginsecure Месяц назад
It’s pretty old and out of date. I would suggest 17 or 21 to use the latest long term support.
@toast5425
@toast5425 Месяц назад
how do i update java
@beginsecure
@beginsecure Месяц назад
Try this: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RkjLCtIvPt8.html
@toast5425
@toast5425 Месяц назад
@@beginsecure i got it 30 minutes ago but thanks it work
@sanya36.7
@sanya36.7 8 месяцев назад
is it normal to take 20-30mins for the zip file to extract !
@beginsecure
@beginsecure 8 месяцев назад
It's unusual for it to take that long. Usually, it should only take a few minutes, depending on your computer's specs. You might want to check if your system is running other heavy processes or if there are any issues with your disk.
@ArrasBushwacker
@ArrasBushwacker 7 месяцев назад
Hey, when I am up to testing if its been installed ( 3:28 ) it doesnt NOT WOOOOORK.... Please help... (SOLUTION) I found that the path would "unset" even when i saved it... not sure why... i think u need to do it a few times until it works....
@urmoit
@urmoit 7 месяцев назад
same
@beginsecure
@beginsecure 7 месяцев назад
Tell me more about what is wrong. One thing that it could be at this point in the video; it's important to open a new command window for gradle to be found.
@urmoit
@urmoit 7 месяцев назад
@@beginsecure when I to gradle -v it keeps saying: 'gradle' is not recognized as an internal or external command, running program or batch file. it says the same thing even if i open command prompt again
@ArrasBushwacker
@ArrasBushwacker 7 месяцев назад
@@beginsecure Hey i found a solution
@ArrasBushwacker
@ArrasBushwacker 7 месяцев назад
@@urmoitFound solutoin, read original comment
@camman18_clone
@camman18_clone Год назад
It didn't work for me
@beginsecure
@beginsecure Год назад
Sorry to hear that. What happened? Let's figure it out. I have a Discord server if you want to reach out there.
@zoru8594
@zoru8594 Год назад
link?@@beginsecure
@minhtri7525
@minhtri7525 8 месяцев назад
Hi. I have a problem, they are not the same even though downloaded at the same page? C:\Users\asus\Downloads>type gradle-8.5-bin.zip.sha256 9d926787066a081739e8200858338b4a69e837c3a821a33aca9db09dd4a41026 C:\Users\asus\Downloads>certutil -hashfile gradle-8.5-bin.zip.sha256 SHA1 hash of gradle-8.5-bin.zip.sha256: a3f15037caf2440be77a57769bc72bb1e1e62433 CertUtil: -hashfile command completed successfully.
@MaxMustermann-if9rf
@MaxMustermann-if9rf 8 месяцев назад
You must create the checksum with certutil from the zip folder and not from the checksum itself (.sha256). You therefore only need to delete ".sha256" in the certutil command.
@beginsecure
@beginsecure 8 месяцев назад
Sorry I didn't get back to you, was busy yesterday. Looks like @MaxMustermann-if9rf jumped in with a great response. Please write back if there are still issues and thanks for watching!
@minhtri7525
@minhtri7525 8 месяцев назад
@@MaxMustermann-if9rf Thanks for the reply. Both commands return the same result, is that correct? C:\Users\asus\Downloads>certutil -hashfile gradle-8.5-bin.zip SHA1 hash of gradle-8.5-bin.zip: d20d932d614adc68f153d24ac04996963a8681d3 CertUtil: -hashfile command completed successfully. C:\Users\asus\Downloads>certutil -hashfile gradle-8.5-bin.zip.sha256 SHA1 hash of gradle-8.5-bin.zip.sha256: a3f15037caf2440be77a57769bc72bb1e1e62433 CertUtil: -hashfile command completed successfully.
@minhtri7525
@minhtri7525 8 месяцев назад
@@beginsecureOk haha
@minhtri7525
@minhtri7525 8 месяцев назад
​@@MaxMustermann-if9rf Thanks for the reply. Both commands return the same result, is that correct? C:\Users\asus\Downloads>certutil -hashfile gradle-8. 5-bin .zip SHA1 hash of gradle-8. 5-bin. zip: (Sorry, I must have a " " so that RU-vid does not misunderstand as 1 link) d20d932d614adc68f153d24ac04996963a8681d3 CertUtil: -hashfile command completed successfully. C:\Users\asus\Downloads>certutil -hashfile gradle-8.5-bin.zip.sha256 SHA1 hash of gradle-8.5-bin.zip.sha256: a3f15037caf2440be77a57769bc72bb1e1e62433 CertUtil: -hashfile command completed successfully.
Далее
Find The Real MrBeast, Win $10,000
00:37
Просмотров 40 млн
How to Install Gradle on Windows 11
2:51
Просмотров 1,5 тыс.
How To Create An Executable Python Program
3:48
Просмотров 4,1 тыс.
Gradle Installation steps in windows 11
8:23
Просмотров 3,8 тыс.
download gradle | windows
3:47
Просмотров 1,2 тыс.
Gradle Course for Beginners | Get Going with Gradle
56:59
Find The Real MrBeast, Win $10,000
00:37
Просмотров 40 млн