{"id":2753,"date":"2020-03-17T10:51:13","date_gmt":"2020-03-17T05:21:13","guid":{"rendered":"http:\/\/artoftesting.com\/?p=2753"},"modified":"2021-04-28T12:07:14","modified_gmt":"2021-04-28T06:37:14","slug":"java-installation","status":"publish","type":"post","link":"https:\/\/artoftesting.com\/java-installation","title":{"rendered":"Java Installation"},"content":{"rendered":"\n<p>In this article, we will learn about Java installation and write our first java program. Excited? Now, let\u2019s begin.\u00a0<br><br>The first step is downloading. We need to download the JDK(Java-Development-Kit). If you already have java installed in your system, you can verify it. In the case of Windows PC, you can search for the command prompt in the start menu and type the following in the command prompt:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n $ java --version\n<\/pre><\/div>\n\n\n<p><br>If you have java installed on your PC, you will get something like this which depends on your version.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/H4ICpqpAdW_Zedq_9DA0jLgGZliXKLSz3VXhWA0QwJaCK4v_H5HQM4vedy449C2AFf0tF7ZvYbINfJr0U3LAhtOn7HgM6_kadQGSgNvi3QNHeZRvxii4soDpqM4PCYAi251UT1pW\" alt=\"Java installed CMD\"\/><\/figure>\n\n\n\n<p><br>If you don\u2019t have Java installed in your system, you can download it from here: <a href=\"https:\/\/www.oracle.com\/java\/technologies\/javase-downloads.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Java SE &#8211; Downloads | Oracle Technology Network<\/a>. This link will lead you to the official page of Oracle. You can go to <em>JDK Download <\/em>under <em>Oracle JDK <\/em>and then download the JDK according to your system requirements, i.e., whether you have Linux or Windows or macOS.&nbsp;<\/p>\n\n\n\n<p><strong>You should preferably download the .exe file for Windows.&nbsp;<\/strong><\/p>\n\n\n\n<p>For Linux, it does not matter which file you download since both are pretty easy to install. In .tar.gz, you need to extract the file but in .rpm, the Linux system installs everything automatically, but only the root user can install it.&nbsp;<\/p>\n\n\n\n<p><strong>For macOS, download the .dmg file.<\/strong><\/p>\n\n\n\n<p>After the download has been finished, you can verify it by comparing the space occupied by the downloaded file on your local drive with the size mentioned on the site. If they match, then congrats, your file has been downloaded perfectly. If not, then try deleting the downloaded file and downloading it again. <br> After this, the installation process starts.<br><br><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-flat ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">Content<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/artoftesting.com\/java-installation\/#Java_Installation_for_Windows_PC\" title=\"Java Installation for Windows PC\">Java Installation for Windows PC<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/artoftesting.com\/java-installation\/#Java_Installation_for_Linux\" title=\"Java Installation for Linux\">Java Installation for Linux<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/artoftesting.com\/java-installation\/#Java_Installation_for_macOS\" title=\"Java Installation for macOS\">Java Installation for macOS<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/artoftesting.com\/java-installation\/#IDE\" title=\"IDE\">IDE<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/artoftesting.com\/java-installation\/#Hello_World_Program\" title=\"Hello World Program\">Hello World Program<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Java_Installation_for_Windows_PC\"><\/span>Java <strong>Installation for Windows PC<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>Step 1<\/strong>: Open the downloaded JDK file and follow the installation instructions until you reach the Finish button.&nbsp;<br><br><strong>Step 2<\/strong>: Now your JDK has been installed. <strong>You need to set the JDK path to your system.<\/strong> Adding a path will permanently allow your system to access the program even when you reboot. For adding the JDK path, you need to navigate to the folder where your java has been installed. Generally, this path would be <em>\u201cC:\\Program Files\\Java\\jdk-13\\bin\u201d<\/em> if not changed explicitly during installation. After navigating to the bin folder, copy the path from the address bar like this:  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"568\" height=\"138\" src=\"http:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/jdk-bin.jpg\" alt=\"java bin\" class=\"wp-image-2755\" srcset=\"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/jdk-bin.jpg 568w, https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/jdk-bin-300x73.jpg 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/figure>\n\n\n\n<p>Now go to Start and search for environment variables. It will lead you to the \u201cEdit the System Environment Variables\u201d in the control panel. <br><br>Click the Environment Variables button. In the dialog box that opens now, you need to double click on the \u201cPath\u201d under System Variables in order to add a new path variable. <br><br>Now click on \u201cNew\u201d and paste the copied path. Click on \u201cOK\u201d and you are done. <br><br>To verify that you\u2019ve added the path successfully, open command prompt and type java. If you do not get any errors, then congrats, you have set the path successfully.<br><br><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Java_Installation_for_Linux\"><\/span>Java <strong>Installation for Linux<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Instructions for .tar.gz<\/strong><\/h3>\n\n\n\n<p><strong>Step 1<\/strong><em>:<\/em> Change to the directory in which you want to install java by typing <em>cd directory_path_name<\/em>. For example, if you want to install java in a directory called usr, you need to type <strong><em>cd \/usr\/java. <\/em><\/strong>If you want to install in this type of specific location you need to have root access to gain the necessary permissions.<br><\/p>\n\n\n\n<p><strong>Step 2<\/strong><em>: <\/em>The .tar.gz archive file is also called a tarball. It is a file that can be uncompressed and extracted in a single step. Move the tarball to the current directory. Unpack the tarball and install the JDK by typing this:&nbsp;<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n$ tar zxvf jdk-13.interim.update.patch_linux-x64_bin.tar.gz\n<\/pre><\/div>\n\n\n<p>The JDK files are installed in a directory called jdk-13.<em>interim.update.patch<\/em>.<\/p>\n\n\n\n<p><strong>Step 3<\/strong><em>:<\/em> Delete the .tar.gz file if you want to save disc size.<br><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Instructions for .rpm<\/strong><\/h3>\n\n\n\n<p><strong>Step 1<\/strong>: First you must use the sudo command to install the .rpm file as root user.&nbsp;<\/p>\n\n\n\n<p><strong>Step 2<\/strong><em>:<\/em> Install the package using the following command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n$ rpm -ivh jdk-13.interim.update.patch_linux-x64_bin.rpm\n<\/pre><\/div>\n\n\n<p>Upgrade the package using the following command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n$ rpm -Uvh jdk-13.interim.update.patch_linux-x64_bin.rpm\n<\/pre><\/div>\n\n\n<p><strong>Step 3<\/strong><em>:<\/em> Delete the .rpm file to save disc space. Exit the root shell. <br><br><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Java_Installation_for_macOS\"><\/span>Java <strong>Installation for macOS<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>Step 1<\/strong><em>: <\/em>From Downloads, double click on the downloaded .dmg file. A Finder window appears with the name of the .pkg file.<\/p>\n\n\n\n<p><strong>Step 2<\/strong><em>:<\/em> Double click on this JDK 13.pkg icon to start the installation. Click Continue and then Install.<\/p>\n\n\n\n<p><strong>Step 3<\/strong><em>:<\/em> Enter the Administrator user name and password and click <strong>Install Software<\/strong>.<\/p>\n\n\n\n<p>The software will get installed and a confirmation window will be displayed. After installation, you can delete the .dmg file to save disc space.<br><\/p>\n\n\n\n<p>If you are still having some problems regarding the installation, then go through the \u201cInstallation instructions\u201d mentioned in the above-mentioned Oracle website. The installation procedure has been given in greater detail and you will get all the help you need from there. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>It will be helpful to understand the functions of some of the files installed and present in java in order to gain a piece of in-depth knowledge and understanding of the language. These are-<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Javac:<\/strong> As explained in the previous article, javac is the compiler of java language which generates the bytecode having extension .class. It is contained inside the bin folder which is the reason why we are adding this path extension in the path variables.&nbsp;<br><br><\/li><li><strong>jdk\/bin:<\/strong> This folder contains the executables and command-line launchers.<br><br><\/li><li><strong>jdk\/conf:<\/strong> This folder contains all the configuration files intended to be edited by developers, deployers and end-users.<br><br><\/li><li><strong>jdk\/lib:<\/strong> This folder contains private implementation details of the runtime system and should never be modified.<br><br><\/li><li><strong>jdk\/jmods:<\/strong> This folder contains all the compiled module definitions.<br><br><\/li><li><strong>jdk\/legal:<\/strong> This folder contains all the copyright and license files for each module.<br><br><\/li><li><strong>jdk\/include:<\/strong> This folder contains the C-language header files that support native-code programming with the Java Native Interface and the Java Virtual Machine (JVM) Debugger Interface. <br><br><br><\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"IDE\"><\/span>IDE<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now that you have installed java in your system, your program will compile and run. But where should you write your program? This is the reason you need an IDE.&nbsp;<\/p>\n\n\n\n<p>IDE stands for Integrated Development Environment. It provides us with a platform to write and edit our codes. Basically, it beautifies our code and makes it faster and easier for us to type and understand any code. It may\/may not compile your code. The most commonly used IDE for Java is Eclipse. Cool name, huh? It also does some really cool stuff.&nbsp;&nbsp;<br>You can download eclipse from this website: <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.eclipse.org\/downloads\/packages\/release\/2020-03\/rc1\/eclipse-ide-java-developers\" target=\"_blank\">Eclipse IDE for Java Developers<\/a><\/p>\n\n\n\n<p>The installation of Eclipse is quite easy. If you are facing any problems during installation, you can refer to some videos or the <em>install guide<\/em> given under Related Links in the above downloads page.<br><\/p>\n\n\n\n<p>If you do not want to use an IDE for writing codes, it is fine. You can also use Notebook for it. But let me remind you that all professional developers use an IDE for writing their codes.&nbsp;<br><\/p>\n\n\n\n<p>After the installation, we are ready to write our first java program.<br><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Hello_World_Program\"><\/span>Hello World Program<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We are learning a new language and so, it is mandatory to write the first \u201cHello World\u201d program.&nbsp;<\/p>\n\n\n\n<p>To write your first program in Eclipse, you first need to create a new java application which, in my case, I named \u201cmyApplication\u201d. Then you need to create a new module and inside it, you need to create a class which I named \u201cMyJava\u201d.&nbsp;<\/p>\n\n\n\n<p>To write your first program in Notepad, simply open Notepad, copy-paste the below code, save it as a .java file and you are done. In my case, I have saved my program under the name \u201chelloworld.java\u201d.<br><br>I have written the same code in Eclipse as well as in Notepad.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/IMqbiT6w_p-9WTn5LNxYDlJoP1sAeMQzbIzSBU9AShrbJ2xJCC_Zs3snZm4YU7n5h0OfcV_7rK8V9i5vcd9wPEUMjurlqWjvwTLsLY8e06OhlEg-Wu8rNe_WObOcZ3Wv17j5_ARg\" alt=\"Java hello world eclipse\"\/><figcaption>Hello World in Eclipse<\/figcaption><\/figure>\n\n\n\n<div style=\"height:22px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/Rq76-vqLcSjW_a83pPQq5SR0AZdKNRl_mHfky9i37zB7tTeYia1pM4OxuE-UsezP6j6nIcQCNlCe-Hf8tUuAetSorZLTcWoNxeiT1g0v6UWaYnbo9hwsDm2E89LvuZd_r1I9GxmQ\" alt=\"hello world Notepad\"\/><figcaption> Hello World in Notepad<\/figcaption><\/figure>\n\n\n\n<p><br>You can copy the code from here-<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\npackage myApplication;\n\npublic class MyJava {\n    public static void main(String args&#x5B;]) {\n       System.out.println(&quot;Hello World&quot;);\n    }\n}\n<\/pre><\/div>\n\n\n<p><br>If the above lines of code look terrifying and confusing to you, don\u2019t worry. You do not need to understand all the details of the code right now. We will go through all of it part by part when the time comes. For now, just copy and paste the code to see the output.&nbsp;<br><\/p>\n\n\n\n<p>If you have used Eclipse IDE, you can just run your program with the run icon present in the IDE itself since it uses the JDK and JRE already installed in your system.<br><\/p>\n\n\n\n<p>If you have used Notepad to write your program, go to the directory where you have saved the java file. Open the terminal in this folder and type <em>javac &lt;filename&gt;.java<\/em> which in this case will be \u201c javac helloworld.java\u201d. After successful compilation of the java program, type<em> java &lt;class name&gt;<\/em> which in this case will be \u201cjava HelloWorld\u201d.&nbsp;<\/p>\n\n\n\n<p>If your program has run successfully, you will get the following output:&nbsp;<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: as3; gutter: false; title: ; notranslate\" title=\"\">\nHello World\n<\/pre><\/div>\n\n\n<p><br>If you get this output, congrats, you just executed your first java program! You have successfully completed the tedious process of installation of Java and executed your first Java program. Be happy for yourselves and give yourselves a long hug!<\/p>\n\n\n\n<p>In the next article, we will start learning about the <a href=\"http:\/\/artoftesting.com\/java-basics\">basics of java programming<\/a>.\u00a0<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will learn about Java installation and write our first java program. Excited? Now, let&rsquo;s begin.&nbsp; The first step is downloading. We need to download the JDK(Java-Development-Kit). If you already have java installed in your system, you can verify it. In the case of Windows PC, you can search for the command &#8230; <a title=\"Java Installation\" class=\"read-more\" href=\"https:\/\/artoftesting.com\/java-installation\" aria-label=\"Read more about Java Installation\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2759,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,20],"tags":[],"class_list":["post-2753","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation-testing","category-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java Installation | Java with Eclipse Setup [+Hello World]<\/title>\n<meta name=\"description\" content=\"In this article, we will learn about Java installation. The first step is downloading. We need to download the JDK(Java-Development-Kit).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/artoftesting.com\/java-installation\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Installation | Java with Eclipse Setup [+Hello World]\" \/>\n<meta property=\"og:description\" content=\"In this article, we will learn about Java installation. The first step is downloading. We need to download the JDK(Java-Development-Kit).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/artoftesting.com\/java-installation\" \/>\n<meta property=\"og:site_name\" content=\"ArtOfTesting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/artoftesting\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-17T05:21:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-28T06:37:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"728\" \/>\n\t<meta property=\"og:image:height\" content=\"416\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kuldeep Rana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@theartoftesting\" \/>\n<meta name=\"twitter:site\" content=\"@theartoftesting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kuldeep Rana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/artoftesting.com\/java-installation#article\",\"isPartOf\":{\"@id\":\"https:\/\/artoftesting.com\/java-installation\"},\"author\":{\"name\":\"Kuldeep Rana\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5\"},\"headline\":\"Java Installation\",\"datePublished\":\"2020-03-17T05:21:13+00:00\",\"dateModified\":\"2021-04-28T06:37:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/artoftesting.com\/java-installation\"},\"wordCount\":1505,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/artoftesting.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/artoftesting.com\/java-installation#primaryimage\"},\"thumbnailUrl\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg\",\"articleSection\":[\"Automation Testing\",\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/artoftesting.com\/java-installation#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/artoftesting.com\/java-installation\",\"url\":\"https:\/\/artoftesting.com\/java-installation\",\"name\":\"Java Installation | Java with Eclipse Setup [+Hello World]\",\"isPartOf\":{\"@id\":\"https:\/\/artoftesting.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/artoftesting.com\/java-installation#primaryimage\"},\"image\":{\"@id\":\"https:\/\/artoftesting.com\/java-installation#primaryimage\"},\"thumbnailUrl\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg\",\"datePublished\":\"2020-03-17T05:21:13+00:00\",\"dateModified\":\"2021-04-28T06:37:14+00:00\",\"description\":\"In this article, we will learn about Java installation. The first step is downloading. We need to download the JDK(Java-Development-Kit).\",\"breadcrumb\":{\"@id\":\"https:\/\/artoftesting.com\/java-installation#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/artoftesting.com\/java-installation\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/artoftesting.com\/java-installation#primaryimage\",\"url\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg\",\"contentUrl\":\"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg\",\"width\":728,\"height\":416,\"caption\":\"Java setup\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/artoftesting.com\/java-installation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/artoftesting.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automation Testing\",\"item\":\"https:\/\/artoftesting.com\/category\/automation-testing\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Java Installation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/artoftesting.com\/#website\",\"url\":\"https:\/\/artoftesting.com\/\",\"name\":\"ArtOfTesting\",\"description\":\"A Beginners Guide to Testing\",\"publisher\":{\"@id\":\"https:\/\/artoftesting.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/artoftesting.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/artoftesting.com\/#organization\",\"name\":\"ArtOfTesting\",\"url\":\"https:\/\/artoftesting.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png\",\"contentUrl\":\"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png\",\"width\":400,\"height\":60,\"caption\":\"ArtOfTesting\"},\"image\":{\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/artoftesting\",\"https:\/\/x.com\/theartoftesting\",\"https:\/\/www.linkedin.com\/groups\/4797819\/\",\"https:\/\/in.pinterest.com\/artoftesting\/\",\"https:\/\/www.youtube.com\/channel\/UCQ9PUVenvvyrUdDQ9yKn31Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5\",\"name\":\"Kuldeep Rana\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/artoftesting.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g\",\"caption\":\"Kuldeep Rana\"},\"description\":\"Kuldeep is the founder and lead author of ArtOfTesting. He is skilled in test automation, performance testing, big data, and CI-CD. He brings his decade of experience to his current role where he is dedicated to educating the QA professionals.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java Installation | Java with Eclipse Setup [+Hello World]","description":"In this article, we will learn about Java installation. The first step is downloading. We need to download the JDK(Java-Development-Kit).","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/artoftesting.com\/java-installation","og_locale":"en_US","og_type":"article","og_title":"Java Installation | Java with Eclipse Setup [+Hello World]","og_description":"In this article, we will learn about Java installation. The first step is downloading. We need to download the JDK(Java-Development-Kit).","og_url":"https:\/\/artoftesting.com\/java-installation","og_site_name":"ArtOfTesting","article_publisher":"https:\/\/facebook.com\/artoftesting","article_published_time":"2020-03-17T05:21:13+00:00","article_modified_time":"2021-04-28T06:37:14+00:00","og_image":[{"width":728,"height":416,"url":"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg","type":"image\/jpeg"}],"author":"Kuldeep Rana","twitter_card":"summary_large_image","twitter_creator":"@theartoftesting","twitter_site":"@theartoftesting","twitter_misc":{"Written by":"Kuldeep Rana","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/artoftesting.com\/java-installation#article","isPartOf":{"@id":"https:\/\/artoftesting.com\/java-installation"},"author":{"name":"Kuldeep Rana","@id":"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5"},"headline":"Java Installation","datePublished":"2020-03-17T05:21:13+00:00","dateModified":"2021-04-28T06:37:14+00:00","mainEntityOfPage":{"@id":"https:\/\/artoftesting.com\/java-installation"},"wordCount":1505,"commentCount":0,"publisher":{"@id":"https:\/\/artoftesting.com\/#organization"},"image":{"@id":"https:\/\/artoftesting.com\/java-installation#primaryimage"},"thumbnailUrl":"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg","articleSection":["Automation Testing","Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/artoftesting.com\/java-installation#respond"]}]},{"@type":"WebPage","@id":"https:\/\/artoftesting.com\/java-installation","url":"https:\/\/artoftesting.com\/java-installation","name":"Java Installation | Java with Eclipse Setup [+Hello World]","isPartOf":{"@id":"https:\/\/artoftesting.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/artoftesting.com\/java-installation#primaryimage"},"image":{"@id":"https:\/\/artoftesting.com\/java-installation#primaryimage"},"thumbnailUrl":"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg","datePublished":"2020-03-17T05:21:13+00:00","dateModified":"2021-04-28T06:37:14+00:00","description":"In this article, we will learn about Java installation. The first step is downloading. We need to download the JDK(Java-Development-Kit).","breadcrumb":{"@id":"https:\/\/artoftesting.com\/java-installation#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/artoftesting.com\/java-installation"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/artoftesting.com\/java-installation#primaryimage","url":"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg","contentUrl":"https:\/\/artoftesting.com\/wp-content\/uploads\/2020\/03\/java-setup.jpg","width":728,"height":416,"caption":"Java setup"},{"@type":"BreadcrumbList","@id":"https:\/\/artoftesting.com\/java-installation#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/artoftesting.com\/"},{"@type":"ListItem","position":2,"name":"Automation Testing","item":"https:\/\/artoftesting.com\/category\/automation-testing"},{"@type":"ListItem","position":3,"name":"Java Installation"}]},{"@type":"WebSite","@id":"https:\/\/artoftesting.com\/#website","url":"https:\/\/artoftesting.com\/","name":"ArtOfTesting","description":"A Beginners Guide to Testing","publisher":{"@id":"https:\/\/artoftesting.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/artoftesting.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/artoftesting.com\/#organization","name":"ArtOfTesting","url":"https:\/\/artoftesting.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/","url":"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png","contentUrl":"http:\/\/artoftesting.com\/wp-content\/uploads\/2019\/12\/Artoftesting_logo.png","width":400,"height":60,"caption":"ArtOfTesting"},"image":{"@id":"https:\/\/artoftesting.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/artoftesting","https:\/\/x.com\/theartoftesting","https:\/\/www.linkedin.com\/groups\/4797819\/","https:\/\/in.pinterest.com\/artoftesting\/","https:\/\/www.youtube.com\/channel\/UCQ9PUVenvvyrUdDQ9yKn31Q"]},{"@type":"Person","@id":"https:\/\/artoftesting.com\/#\/schema\/person\/7846d06225b52c778d160becf65996a5","name":"Kuldeep Rana","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/artoftesting.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb5979a4b81ca7739c75080e473fad391a8665364e72abaddec9002dd4553326?s=96&d=mm&r=g","caption":"Kuldeep Rana"},"description":"Kuldeep is the founder and lead author of ArtOfTesting. He is skilled in test automation, performance testing, big data, and CI-CD. He brings his decade of experience to his current role where he is dedicated to educating the QA professionals."}]}},"_links":{"self":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts\/2753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/comments?post=2753"}],"version-history":[{"count":1,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts\/2753\/revisions"}],"predecessor-version":[{"id":4914,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/posts\/2753\/revisions\/4914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/media\/2759"}],"wp:attachment":[{"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/media?parent=2753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/categories?post=2753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artoftesting.com\/wp-json\/wp\/v2\/tags?post=2753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}