Ultimate JAVA development environment setup in VSCode and LINUX + WINDOWS JDK installation guide

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello friends welcome to my youtube channel today in this tutorial i am going to show you how you can set your ultimate java development environment in your linux machine if you are using windows machine don't worry the most interesting part of this tutorial is we are going to use visual studio code as our text editor and we will run our code there as well so if you are using windows machine just install visual studio code there and you will good to go visual studio code in my opinion is the best place to set up your coding environment no matter what technology you are using or what programming language you want to work with now we will discuss the features and advantages of visual studio code later may be in another dedicated video but without any further delay let's dive into the today's topic so in this tutorial i will show you how you can set up visual studio code shortly vs code to run java programs and i will show you how to run the program in your terminal as well so specifically for linux users they can run the program without vs code also so let's first move ahead to the browser to download vs code the download link is given into the description below so go ahead and download it select the installer as per your machine configuration here i will choose this installer with dot deb extension now if you don't like to install the dev file manually here's another more easier option is available for you so what you have to do just click on this snap store button and this will redirect you to the snapstore from where you can directly install the vs code in your linux machine so let me show that also so when you click on the install button here you will get two options you can install via desktop snapstore app or you can install it by executing the following command in your command prompt so let me install via the desktop app and when you click on the button you can see a popup is shown click the button open xdg open and here i am choosing the snapstore option the snap store is open but you can't see it i know for the totally transparent background color of the snapstore window so let me minimize all the other windows and here you can see in my machine already vs code is installed in your machine you will see the install button will be available there so on clicking that you can easily install the vs code on your machine in the meantime let's install the jdk so to do that open the terminal and type sudo apt get install default jdk and hit enter the command is available in the description below so that you can just copy and paste the command now as we have completed installing jdk you can compile and run any java file in terminal with the java c and java commands i will show that later let me first set up our visual studio code to run java file ok so after installing jdk move ahead to our vs code so after installing visual studio code let's open it let me first choose a folder to create the java files here i am creating a java file named hello world remember that the file name should be same as the class name that you are going to define here now if you are doing this for the first time in your vs code right after you will create the file you can see at the bottom right corner of your vs code a message popped up instructing to install some recommended extensions for java go ahead with the steps and install all these extensions and that will set your environment automatically to run java code as well as you will get the features like intellisense code completion complex project management error detection debugging etc now if it is not showing click on the extensions button right over here and search with the keyword java as i am doing here here we have to install some of the extensions so the first extension will be this one java extension pack install it and when you install this extension this will install the subsequent extensions namely language support for java by redhat maven for java java test runner project manager for java debugger for java and spring initializer java support and also the visual studio intellicode so after successfully installing these extensions let's write a code and run it inside our vs code and as you can already see that there is a run button showing at the top right corner in our vs code so we can easily compile and run java files by just clicking that button only so let's write a code to print hello world in our terminal as you can see we can get the features like syntax highlighting intellisense code completions error checking while writing the code as i have completed with the code let's click the run button and see what happened and as expected the output is showing in the command prompt so you can realize running any java file on vs code is even more easier than the process where we first compile the code with java c and then we execute the class file with java command now we can do that also in the terminal so let's open the same directory in the terminal and type java c helloworld.java and then java hello world and as you can see we are getting the same result as you can realize that you can follow the steps to set up the vs code to run java programs in windows machines also just you have to download the jdk and install it manually so let us move to the download page here you can see various jdk is available for different platforms you have to download the one for windows most probably in between the last two one is for a 32-bit and another is for a 64-bit architecture download and install that in your machine before installing the extensions in your vs code after installing the jdk you can easily set vs code to run java files following my steps so hope this video is very helpful for you and also it will increase your productivity to write java codes if you like this video just hit the like button so that the video can reach to most of the people in youtube and also subscribe to my channel and press the bell icon so that you will never miss a video so that's all for today hope to meet you in my next video thank you
Info
Channel: all about CS
Views: 5,794
Rating: undefined out of 5
Keywords: Java, vscode, Java development environment setup, Install java on Linux, install java on Windows, install jdk, java in vscode, java jdk, java tutorial, java setup for Windows 10, java tips and tricks, setting up java in visual studio code
Id: 4rG2fzH_Jjo
Channel Id: undefined
Length: 9min 58sec (598 seconds)
Published: Sat Nov 07 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.