Skip to main content

Setting Up Java Development Kit in Windows 10 

How to Download, Install, and Setting Up JDK in Windows 10?

What is JDK?

The Java Development Kit (JDK) is a software development environment for creating applets and Java applications. JDK is an abbreviation for Java Development Kit. It is available for usage by Java developers on Windows, macOS, Solaris, and Linux. JDK assists them in writing and running Java programs. It is feasible to run multiple JDK versions on the same machine. But it's recommended to install Java on Windows 10 with the latest version.

In this article, we are going to see how to set up JDK in Windows 10. Let’s divide the article into three parts.

  ∘ 1 . Getting the latest JDK version for Windows 10
  ∘ 2 . Installing JDK in Windows 10
  ∘ 3. Setting up the environment for Java in Windows 10

Let’s see one by one.

1 . Getting the latest JDK version for Windows 10

1 — Download the latest version of JDK from here.

Image by Author

2 — Select the needed setup file as per your requirement, here we have to choose for Windows 10. So we select this.

Image by Author

3 — Accept it and download the setup

Image by Author

Once, it is downloaded, let’s install it.

2 . Installing JDK in Windows 10

Once the Java JDK 16 download is complete, run the exe for install JDK. Click Next.

Image by Author

Image by Author

Once you install Java in windows, click Close

Image by Author

3. Setting up the environment for Java in Windows 10

The PATH variable specifies the location of executables such as javac and java, among others. You can start a program without providing the PATH, but you must provide the entire path of the executable, such as C:\Program Files\Java\jdk-16.0.1\bin\javac ClassName.java instead of using javac ClassName.java.

The CLASSPATH variable specifies where the Library Files are stored.

Let’s look at how to establish the PATH and CLASSPATH variables.

Go to properties of My Computer/ This device.

Image by Author

Select Advanced system settings.

Image by Author

Click on Environment Variables to set the Java runtime environment.

Image by Author

Image by Author

Image by Author

Image by Author

Go to the command prompt and type javac commands. Java is installed if you see the screen below.

Image by Author

Welcome to Java! Happy coding!

Hope this can help. Share your thoughts too.

Comments

Popular posts from this blog

Hello World project in ROS on Windows 10

We've seen how to install ROS in Windows 10 in this article, this is the time to start programming. What is the very first thing we do once we setup a new Programming Language? Hello World !!! Lets see how to write Hello World in ROS on Windows machine. Before going into the programming, make sure you've installed Gedit on your Windows machine. You can get it from here. Also, setup the path for Gedit and restart your machine to ensure the path definition works. First open the ROS terminal and check for the working directory. We have to be in the catkin workspace. If you've already created it, go to that directory. Or else, create it like this. Create a src folder inside catkin_ws. Inside that newly created src folder, lets create a new package in it. The command to create a ROS package is as follows. >catkin_create_pkg [PACKAGE_NAME] [DEPENDENT_PACKAGE_1] ....[DEPENDENT_PACKAGE_N] ‘std_msgs’ and ‘roscpp’ were added as optional dependent packages

SQL Joins

You’ll nearly always need to connect many tables if you want to extract anything useful out of data. A join clause in SQL joins columns from one or more tables into a new table, similar to a join operation in relational algebra. In this article, let’s see how the joins work in SQL. We are going to explore the following SQL Joins.   ∘ 1 — (INNER) JOIN   ∘ 2 — LEFT (OUTER) JOIN   ∘ 3 — RIGHT (OUTER) JOIN   ∘ 4 — FULL (OUTER) JOIN AND UNION   ∘ When to use it? Also, I’m going to use the following tables for the above-mentioned SQL Joins. 1 — (INNER) JOIN Returns records with values in both tables that are the same. Image from Author As long as the condition is met, the INNER JOIN keyword selects all rows from both tables. This keyword will produce a result-set by merging all rows from both tables that satisfy the criteria, i.e. the common field’s value will be the same. Syntax: SELECT table1.column1,table1.column2,table2.column1,…. FROM table1 INNER JOIN table2 ON table1.matching_column =

Hyperlinked Images in Gmail Signature

Instead of Texts, You Can Now Add Images. Here's How! If you use Google Apps for Business, you've probably set up a standard signature in Gmail (don't panic if you haven't). You'll be able to do it after this). You may even have a fancy signature that includes a picture of your company logo or other branding elements. But what if you could make a useful hyperlink out of an otherwise just beautiful logo? Fortunately, it's not only doable but also less difficult than you would imagine! Let's assume you want to change your signature to include a picture of your company logo, with a link to your corporate site when someone clicks on the logo. Here's how to go about it: Go to Gear > Settings > General > Signature from your Gmail inbox.  After you've finished writing your signature, click the Insert Image option to add the logo. Image by Author In the conventional sense, Gmail does not allow you to upload photos for signatures. As a result, you