Project JDK is not defined Intellij idea using Spring boot project SOLVED | Setup Java SDK

Project JDK is not defined Intellij idea using Spring boot project SOLVED | Setup Java SDK


Project JDK is not defined Intellij idea using Spring boot project SOLVED | Setup Java SDK

How to solve project sdk is not defined intellij idea in spring boot java project is shown


Content

0.54 -> hey everyone in this video I will be showing you  how to solve the issue project jdk is not defined  
6.3 -> and I'm getting this error when I'm trying to  run my spring boot project in IntelliJ so let's  
11.88 -> get started so the first thing what you need  to do is you have to just go to your browser  
16.14 -> and you need to install Java so just type Oracle  Java so if you have installed it's well and good  
21.84 -> but if you haven't installed just follow these  instructions so we'll be having this downloads  
25.68 -> option over here just click it and in this just  scroll down you'll be having the windows option  
30.6 -> if you're using Windows and you just download this  particular okay x64 installer so if you just click  
36.36 -> it it'll get automatically downloaded and the  installation process is also so simple so after  
40.8 -> downloading what you are doing is you need to just  go to the location where you have installed Java  
44.82 -> so the default location is going to be this PC  local disk C and you will be having program files  
51.06 -> and you will be having Java over here and you need  to go to jdk and you need to go to bin I guess  
57.9 -> yeah and need to just copy this entire path just  have like click your mouse over in the top and  
63.66 -> Ctrl C to copy this path after copying you need  to go to search and type environment variables  
70.8 -> you will be having the option called as edit the  system environment variables just click on open
78.06 -> and here you need to go to environment variables  
82.02 -> and in the system variables option over here  you need to just click on path and click on edit  
88.14 -> and I'm going to just click on new and just paste  this particular path and you need to click on okay  
93.24 -> so I think I already added so here you can see  I've already added it so I'm not clicking okay  
97.86 -> so just paste it and click on OK right so I'll  just now cancel it you need to click on OK so  
103.38 -> bin should also be there this is the path so after  clicking ok just click on OK everywhere literally  
109.2 -> everywhere okay so once you're done with this you  need to open command prompt to check whether you  
113.94 -> have successfully added the path I mean the right  path just go to search and type CMD and hit enter
124.92 -> okay so in the command prompt you  need to type Java hyphen version  
131.16 -> and you'll be getting the version over here  which means that you have successfully done  
134.64 -> all the steps so just close it now we  will again go to IntelliJ and here we'll  
139.44 -> be having an option to set up SDK over here  so this one so you need to just click on it  
145.14 -> so here you can see I'm having my Oracle open  jdk version so this is the version that I have  
149.88 -> installed earlier you saw the path right this is  the version so if you are having this already you  
154.26 -> can just click on it will automatically set up  everything so if you aren't having this and it's  
158.46 -> not displaying for you need to just click on ADD  SDK and you need to just click on jdk over here  
165.78 -> and in this you need to just go to your  location where you have Java jdk so for  
170.46 -> me it's going to be programs Java  jdk just select this and click on OK
182.52 -> so once you're done adding the jdk it will  show you processing over here and you will  
187.02 -> also get some loading things over here so just  be patient after selecting yeah the particular  
192.54 -> jdk path and now you can see all my errors have  gone and it still shows processing so just be  
200.52 -> patient so after some time you won't be even  getting the processing and you also won't be  
204.6 -> having any errors and your program will be like  ready to run so here you can see now I have got  
210.36 -> a green color tick mark which means that my Java  version and Java jdk has been successfully like  
215.94 -> added to my project so if I just now click on  this run button and we just like right click it  
222.12 -> and if you just click on run them application  your project will be running successfully and  
225.96 -> you will just click on this icon over here so  this is how we basically like solve the issue  
230.52 -> that like adding Java path to your project and  I hope you would have found this video useful  
235.68 -> I've also done many other tutorials in C  C++ Java python node.js react.js mongodb
240.66 -> so do check other videos of my channel  subscribe me thanks for watching

Source: https://www.youtube.com/watch?v=8l1Bmu-Vl0U