{"id":6748,"date":"2021-06-09T18:04:51","date_gmt":"2021-06-09T18:04:51","guid":{"rendered":"https:\/\/linuxways.net\/?p=6748"},"modified":"2021-06-09T18:04:51","modified_gmt":"2021-06-09T18:04:51","slug":"how-to-install-netbeans-on-centos-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/how-to-install-netbeans-on-centos-8\/","title":{"rendered":"How to Install NetBeans on CentOS 8"},"content":{"rendered":"<p>NetBeans is an open-source IDE using which you can easily develop applications based on Java, C++, PHP, and few other programming languages. It can run on any java supporting OS like Linux, MacOS, Windows, and BSD. In an earlier post, we described the <a href=\"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-netbeans-on-ubuntu-20-04\/\">installation of NetBeans on Ubuntu<\/a>. This post explains how to install NetBeans on CentOS 8.<\/p>\n<h2>Requirements:<\/h2>\n<p>You will require:<\/p>\n<ul>\n<li>CentOS system<\/li>\n<li>A user with sudo access<\/li>\n<\/ul>\n<p><strong>Note<\/strong>: We will be demonstrating the procedure on <strong>CentOS 8 <\/strong>machine<strong>.<\/strong><\/p>\n<h2>Installing NetBeans<\/h2>\n<p>To install NetBeans on CentOS, there are following two methods:<\/p>\n<ul>\n<li>Installation via installer script<\/li>\n<li>Installation via snap<\/li>\n<\/ul>\n<h3>Installation via Installer Script<\/h3>\n<p>In the following method, we will install NetBeans using the installer script available at Apache NetBeans&#8217; official website. Using this installation method, you can have the latest version of NetBeans. For NetBeans, you will also require JDK installed on your CentOS machine. The complete steps for the installation of NetBeans via installer script are as follows:<\/p>\n<p>1. First, you will need to install JDK on your CentOS system. Use the command below to install it:<\/p>\n<pre>$ sudo dnf install java-11-openjdk java-11-openjdk-devel<\/pre>\n<p>Enter sudo password and hit <strong>y<\/strong> when prompted with <strong>y\/N<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"467\" class=\"wp-image-6749\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-41.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-41.png 1021w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-41-300x137.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-41-768x351.png 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><\/p>\n<p>After the JDK is installed, you will see the following output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"178\" class=\"wp-image-6750\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-42.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-42.png 555w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-42-300x96.png 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/p>\n<p>2. Next, you will need to download Apache NetBeans on your system. Visit Apache NetBeans official <a href=\"https:\/\/netbeans.apache.org\/download\/nb120\/nb120.html\">website<\/a> and download the latest available version of the installer script version for Linux. The latest version available at the NetBeans site is 12.4, but here we are going to download the version 12.0.<\/p>\n<p>You can also use the command below in your Linux Terminal to download the NetBeans installer script <strong>version 12.0<\/strong>.<\/p>\n<pre><strong>$ wget <\/strong>https:\/\/downloads.apache.org\/netbeans\/netbeans\/12.0\/Apache-NetBeans-12.0-bin-linux-x64.sh<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1148\" height=\"161\" class=\"wp-image-6751\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-43.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-43.png 1148w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-43-300x42.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-43-1024x144.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-43-768x108.png 768w\" sizes=\"auto, (max-width: 1148px) 100vw, 1148px\" \/><\/strong><\/p>\n<p><strong>You can find the downloaded script in your current directory. <\/strong><\/p>\n<p>2. The next step we will need to do is to run the downloaded script. However, before that, we will need to first make it executable. Use the command below to do so:<\/p>\n<pre>$ sudo chmod +x Apache-NetBeans-12.0-bin-linux-x64.sh<\/pre>\n<p><strong>Note<\/strong>: Make sure in the above command you mention the correct version of the script you have downloaded. You can also type initial letters like <em>Apache-NetBeans<\/em> and use the tab to auto complete the name.<\/p>\n<p>3. After making the script executable, we can run it as follows:<\/p>\n<pre>$ sudo .\/Apache-NetBeans-12.0-bin-linux-x64.sh<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"115\" class=\"wp-image-6752\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-44.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-44.png 620w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-44-300x56.png 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>After running the script, the following installer wizard will appear on your screen. Click <strong>Next<\/strong> to start the installation process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"589\" height=\"493\" class=\"wp-image-6753\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-45.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-45.png 589w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-45-300x251.png 300w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><\/p>\n<p>Then accept the Terms and conditions by checking the box and click <strong>Next<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"594\" height=\"491\" class=\"wp-image-6754\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-46.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-46.png 594w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-46-300x248.png 300w\" sizes=\"auto, (max-width: 594px) 100vw, 594px\" \/><\/p>\n<p>Then choose the installation directory or leave the default directory selected and click <strong>Next<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"597\" height=\"486\" class=\"wp-image-6755\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-47.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-47.png 597w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-47-300x244.png 300w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/p>\n<p>In the next window, check the box named <strong>Check for Updates<\/strong> and then hit <strong>Install <\/strong>button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"588\" height=\"489\" class=\"wp-image-6756\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-48.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-48.png 588w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-48-300x249.png 300w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/><\/p>\n<p>Next, the installation of Apache NetBeans will be started and you will see the following similar view:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"591\" height=\"483\" class=\"wp-image-6757\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-49.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-49.png 591w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-49-300x245.png 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/p>\n<p>After the installation of Apache NetBeans is completed successfully, you will see the below window. Click <strong>Finish<\/strong> to complete the setup.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"595\" height=\"487\" class=\"wp-image-6758\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-50.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-50.png 595w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-50-300x246.png 300w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/p>\n<h3>Installation via Snap<\/h3>\n<p>The snap package for NetBeans is also available for installation on CentOS. This method also installs the latest version of Apache NetBeans on your system.<\/p>\n<p>The complete steps are as follows:<\/p>\n<p>1. You must first enable the EPEL repository in order to install snapd. Here is the command to do so:<\/p>\n<pre>$ sudo yum install epel-release<\/pre>\n<p>Provide sudo password and hit <strong>y<\/strong> when prompted with <strong>y\/N<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"377\" class=\"wp-image-6759\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/enable-epep-repository-1.png\" alt=\"enable EPEP repository\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/enable-epep-repository-1.png 820w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/enable-epep-repository-1-300x138.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/enable-epep-repository-1-768x353.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/p>\n<p>2. You can now use the yum command to install snapd as follows:<\/p>\n<pre>$ sudo yum install snapd<\/pre>\n<p>Provide sudo password and hit <strong>y<\/strong> when prompted with <strong>y\/N<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"420\" class=\"wp-image-6760\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/installing-snapd-1.png\" alt=\"installing snapd\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/installing-snapd-1.png 819w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/installing-snapd-1-300x154.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/installing-snapd-1-768x394.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/p>\n<p>3. After installing snapd, you will have to enable the snapd.socket:<\/p>\n<pre>$ sudo systemctl enable --now snapd.socket<\/pre>\n<p>4. Then create a symlink for enabling classic snap support:<\/p>\n<pre>$ sudo ln -s \/var\/lib\/snapd\/snap \/snap<\/pre>\n<p>5. Now, you can install Apache NetBeans as follows:<\/p>\n<pre>$ sudo snap install netbeans --classic<\/pre>\n<p>Once NetBeans is installed, you should see the following similar output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"578\" height=\"46\" class=\"wp-image-6761\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-51.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-51.png 578w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-51-300x24.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/p>\n<h3>Launch NetBeans<\/h3>\n<p>When the installation of NetBeans is completed, you can launch it from application menu (GUI). Go to the <strong>Activities<\/strong> tab in the top left corner of the desktop. Then in the search area, type <strong>netbeans<\/strong>. From the results, click the NetBeans icon to open it.<\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" width=\"386\" height=\"250\" class=\"wp-image-6762\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-52.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-52.png 386w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-52-300x194.png 300w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><\/h2>\n<p>Here is the default view you will see after launching the NetBeans.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"825\" height=\"558\" class=\"wp-image-6763\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-53.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-53.png 825w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-53-300x203.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-53-768x519.png 768w\" sizes=\"auto, (max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2>Uninstall NetBeans<\/h2>\n<p>If you want to remove NetBeans from your system, you can do so using the following methods:<\/p>\n<p>If you have installed NetBeans using the <strong>installer script<\/strong>, you can uninstall it as follows:<\/p>\n<p>Move inside the NetBeans installation directory located under the Home directory:<\/p>\n<pre>$ cd netbeans-12.0\/<\/pre>\n<p>Then run the uninstall script as follows:<\/p>\n<pre>$ uninstall.sh<\/pre>\n<p>After running the above command, a window will appear showing you the components which will be uninstalled. Click Uninstall and once it is done, click <strong>Finish<\/strong>.<\/p>\n<p>If you have installed NetBeans using the <strong>snap<\/strong>, you can uninstall it as follows:<\/p>\n<pre>$ sudo snap remove netbeans<\/pre>\n<p>Enter sudo password, after which it will be removed from your system.<\/p>\n<p>In this post, you have learned about the installation of Apache NetBeans on the CentOS system using two different ways. We have covered step by step the entire procedure for the installation of NetBeans that includes downloading, installation, and launching of NetBeans. In the end, you also learned to uninstall Apache NetBeans if you ever have to do that.<\/p>","protected":false},"excerpt":{"rendered":"<p>NetBeans is an open-source IDE using which you can easily develop applications based on Java, C++, PHP, and few other programming languages. It can run on any java&hellip;<\/p>","protected":false},"author":1,"featured_media":7115,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[93,293],"class_list":["post-6748","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos-8","tag-netbeans"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/6748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=6748"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/6748\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/7115"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=6748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=6748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=6748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}