{"id":6037,"date":"2021-04-26T11:35:49","date_gmt":"2021-04-26T11:35:49","guid":{"rendered":"https:\/\/linuxways.net\/?p=6037"},"modified":"2021-04-26T11:35:49","modified_gmt":"2021-04-26T11:35:49","slug":"how-to-install-netbeans-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-netbeans-on-ubuntu-20-04\/","title":{"rendered":"How to Install NetBeans on Ubuntu 20.04"},"content":{"rendered":"<p>NetBeans is an open-source IDE (Integrated Development Environment) for developing and modifying applications based on Java, PHP, JavaScript, C++, and some other programming languages. It also helps to develop enterprise-level applications which need fully-featured interfaces. NetBeans can be installed and used on all OS platforms which support Java like Linux, Windows, MacOS, etc. It has got various features including built-in debugging support, error checking, syntax highlighting, code completion, etc.<\/p>\n<p>If you need to install NetBeans on your Ubuntu OS, you can do so using different ways. In this post, we will cover:<\/p>\n<ul>\n<li>Installing NetBeans using apt (Command Line)<\/li>\n<li>Installing NetBeans using Software Center (GUI)<\/li>\n<\/ul>\n<p>This post has been written for <strong>Ubuntu 20.04 LTS (Focal Fossa)<\/strong>.<\/p>\n<h2>Pre-requisite: Install Java<\/h2>\n<p>For NetBeans, you will need Java 8 or later to be installed on the system. To install Java on your system, launch the Terminal, and execute this command:<\/p>\n<pre>$ sudo apt install openjdk-8-jdk<\/pre>\n<p>Enter the sudo password and then it will start installing Java on your system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"334\" class=\"wp-image-6038\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-306.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-306.png 771w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-306-300x130.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-306-768x333.png 768w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/p>\n<p>Once installed, you can verify the installation of Java using this command:<\/p>\n<pre>$ java -version<\/pre>\n<p>The following output verifies that java has been successfully installed on or system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"91\" class=\"wp-image-6039\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-307.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-307.png 858w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-307-300x32.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-307-768x81.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/p>\n<h2>Method#1 Installing NetBeans using apt (Command Line)<\/h2>\n<p>The easiest way to install NetBeans is using the apt utility. This method installs the older version of NetBeans that is <strong>version 10<\/strong>.<\/p>\n<p>1. First, enable the universe repository using this command in Terminal:<\/p>\n<pre>$ sudo add-apt-repository \"deb http:\/\/archive.ubuntu.com\/ubuntu focal universe\"<\/pre>\n<p>2. Update the repository index using the following command:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>3. Now, in order to install NetBeans in your system, use this command:<\/p>\n<pre>$ sudo apt install netbeans<\/pre>\n<p>Now the installation of NetBeans will be started. It can take a bit of time depending upon your connection speed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1014\" height=\"242\" class=\"wp-image-6040\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-308.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-308.png 1014w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-308-300x72.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-308-768x183.png 768w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/p>\n<p>Once NetBeans is installed, you are ready to use it.<\/p>\n<h2>Method#2 Installing NetBeans using Software Center (GUI)<\/h2>\n<p>NetBeans can also be installed via Ubuntu Software Center. This method installs the latest version of NetBeans that is <strong>version 12.3<\/strong>.<\/p>\n<p>1. Launch Software Center in your system. You can launch it by searching it from the Dash menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"272\" class=\"wp-image-6041\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-309.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-309.png 420w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-309-300x194.png 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/p>\n<p>2. In the Software Center window, click the search icon and type <em>netbeans<\/em> in it. From the search results, click the <strong>Apache NetBeans<\/strong> icon as can be seen in this screenshot.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"189\" class=\"wp-image-6042\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-310.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-310.png 714w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-310-300x79.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/p>\n<p>After clicking the Apache NetBeans icon, you will see an <strong>Install<\/strong> button under it. Click it to install NetBeans on your system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"218\" class=\"wp-image-6043\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-311.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-311.png 715w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-311-300x91.png 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>Then it will prompt you to enter the password for authentication. Enter the password and then the installation of NetBeans will be started. It can take a bit of time depending upon your connection speed. <img loading=\"lazy\" decoding=\"async\" width=\"759\" height=\"225\" class=\"wp-image-6044\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-312.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-312.png 759w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-312-300x89.png 300w\" sizes=\"auto, (max-width: 759px) 100vw, 759px\" \/><\/p>\n<p>Once NetBeans is installed, you are ready to use it.<\/p>\n<h2>Launch NetBeans<\/h2>\n<p>In order to launch NetBeans, hit the super key and type <em>netbeans<\/em> in the search bar. When the search result appears, click the NetBeans icon to launch it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"438\" height=\"270\" class=\"wp-image-6045\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-313.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-313.png 438w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-313-300x185.png 300w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/p>\n<p>You will see the following default view of NetBeans.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"634\" class=\"wp-image-6046\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-314.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-314.png 931w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-314-300x204.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-314-768x523.png 768w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/p>\n<h2>Remove NetBeans<\/h2>\n<p>In case, you no longer need NetBeans on your system, you can remove it as follows:<\/p>\n<pre>$ sudo apt remove netbeans<\/pre>\n<p>If you have installed NetBeans via Ubuntu Software Center, you can remove it as follows:<\/p>\n<p>Launch Software Center from the Dash menu. In the Software Center <strong>Installed<\/strong> tab, look for NetBeans applications. Now to remove the NetBeans application, click the <strong>Remove<\/strong> button. Then enter the authentication password and click the <strong>Authenticate<\/strong> button. Now NetBeans will be removed from your system.<\/p>\n<p>This post covered two different methods for the installation of NetBeans on Ubuntu OS. You can use any installation method (command line or via GUI-based method) that is most convenient for you. However, remember the apt install the older version 10 of NetBeans while the Software Center installs the latest version 12.3.<\/p>","protected":false},"excerpt":{"rendered":"<p>NetBeans is an open-source IDE (Integrated Development Environment) for developing and modifying applications based on Java, PHP, JavaScript, C++, and some other programming languages. It also helps to&hellip;<\/p>","protected":false},"author":1,"featured_media":6092,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[293,100],"class_list":["post-6037","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-netbeans","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/6037","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=6037"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/6037\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/6092"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=6037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=6037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=6037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}