Computers are devices that help human beings to solve real-life problems, thus making work easier. For them to function according, you have to feed them with instructions which they execute and give you a solution to a specific problem. This whole operation is made possible by programming. Thus, programming is the act of writing codes that will help a computer carry out tasks. Hence, a computer program is a sequence of written instructions which ensure a computer is functioning appropriately.

Introduction to IDE

IDE is the short form for Integrated Development Environment. It is an application that provides a coding, testing, and debugging environment.IDE contains text editors, compilers, libraries, debugger, test platforms, and other tools needed in software creation. Note that IDE has functions that make it easy to develop software; depending on the programming language being used by the developer. A key point to note is that IDEs have the functionalities of compiling and interpreting a program. In this article, we will go through the installation and usage of Apache Netbeans 13, a perfect example of IDE.

What is Apache NetBeans

Apache Netbeans is a major Apache project which provides Apache Netbeans IDE and Apache Netbeans platform. These software development tools assist in developing programs quickly and efficiently. Apache Netbeans IDE is a well-known platform for the development of java applications. It is widely used since it is free, cross-platform, easy to use, and feature-rich. Apart from Java, Netbeans IDE supports other programming languages such as PHP, C/C++, and javascript.

Apache NetBeans 13

Apache Netbeans 13 was released in March 2022. It is an open-source Integrated Development environment for developers.

Features of Apache Netbeans 13

  • Supports multiple programming languages such as HTML5, and C/C++.
  • Offers partial upgrades for Maven, Gradle, and PHP.
  • Apache NetBeans 13 start experience is smooth and simple.
  • It has a light flatLaf look and feel.
  • Outstanding debugging capabilities.
  • Bundled nb-javac.

Installing Apache NetBeans 13 IDE on Solus Linux

To install Apache Netbeans 13 IDE, we will take a couple of steps. We will start by installing OpenJDK-8, which is a must before you run Apache Netbeans 13 on Solus.

Step 1: Install OpenJDK-8

Before we install OpenJDK-8, let’s update the Solus system.

sudo eopkg upgrade

OpenJDK-8 is found on the Solus repository. Install it using this command:

sudo eopkg install openjdk-8

In the next step, we will set JAVA_HOME environment variables where the path is /usr/lib64/OpenJDK-8.

sudo tee /etc/profile.d/jdk.sh <<EOF
export JAVA_HOME=/usr/lib64/openjdk-8
export PATH=\$PATH:\$JAVA_HOME/bin
EOF
export JAVA_HOME=/usr/lib64/openjdk-8
export PATH=$PATH:$JAVA_HOME/bin

Then source the profile.

source /etc/profile.d/jdk.sh

To verify the PATH, use the following command.

echo $JAVA_HOME

Output for the path verification.

 $ echo $JAVA_HOME
/usr/lib64/openjdk-8

Lets confirm that OpenJDK 8 was installed on Solus by checking the Java Version. After verifying the version of installed OpenJDK, we can proceed to install Apache Netbeans 13.

$ java -version
openjdk version "1.8.0_302-solus"
OpenJDK Runtime Environment (build 1.8.0_302-solus-ga)
OpenJDK 64-Bit Server VM (build 25.302-bga, mixed mode)

Step 2: Install Apache Netbeans IDE 13

On Solus, we will install Apache Netbeans IDE 13 by first downloading it from Netbeans official website. Choose the Linux-based Apache Netbeans 13.

Find the downloaded Apache Netbeans 13 on your computer downloads.

On your terminal, change the current working directory to access the downloaded Apache Netbeans IDE 13.

cd Downloads

Set permissions for Apache Netbeans 13 directory.

chmod +x Apache-NetBeans-13-bin-linux-x64.sh

Run the Apache Netbeans 13 installer.

./Apache-NetBeans-13-bin-linux-x64.sh

Expected results:

$ ./Apache-NetBeans-13-bin-linux-x64.sh 
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...

The installer wizard for Apache Netbeans 13 will open as illustrated below. Click on NEXT to proceed with the installation process.

Agree to the Apache Netbeans license terms.

Choose the destination folder of your choice.

Click on the Install button and allow Apache Netbeans to check on updates.

The installation will take place within some minutes, wait until it completes.

After the installation process completes, click on FINISH. Congratulations, you have successfully installed Apache Netbeans IDE 13 on Solus.

Install Plugins on Apache Netbeans IDE 13

We will start by accessing Apache Netbeans IDE 13 from the Solus system. Go to Activities, search for Netbeans and click on the application that will appear.

After clicking on the application, Apache Netbeans IDE 13 will open as illustrated.

To install plugins, go to My NetBeans > Install Plugins.

A window will open showing the available plugins. Select the plugins you want and click on the Install button.

A plugins Installer wizard will appear showing the plugins you have chosen. Click on NEXT to proceed

Accept the license agreement and click on Install.

To complete the installation of Apache Netbeans IDE 13 plugins, click on FINISH.

Usage of Apache NetBeans 13 IDE on Solus Linux

Since you already have Apache Netbeans 13, you can now start using it on Solus. Lets create a simple Java hello world Project . Click on File and select New Project as the initial step.

In the next part, choose the project. In that case, I will select Java with Ant > Java Application.

Wait until Java SE is activated.

In the next step, give your Project a Name. Also, create the main class by typing the name you want. Click on the Finish button to complete.

A code editor will open with a program containing the details we have created.

Let’s type a java code to print Hello World.

System.out.println("Hello World !");

In the illustration below, you can see where we have typed the java code.

To run our Hello World Java program, go running> Run Project <ProjectName> on Apache Netbeans IDE 13.

The results for Hello World will be displayed.Congratulations, you have created and run a java project using Apache Netbeans IDE 13.

Wrap Up

There are a lot of things you can do from an Integrated Development Environment (IDE). Apache Netbeans IDE 13 ensures you have a platform where you can write codes, test and debug. Enjoy using this tool by following this guide with steps on the installation and usage Apache Netbeans IDE 13 on Solus.

More Gudes:

LEAVE A REPLY

Please enter your comment!
Please enter your name here