If you need an IDE to build java applications on Haiku, one of the tool available is Apache NetBeans.
It has received a recent update on Haiku Depot, so let's do a quick presentation of this IDE in this article.
The first step is to go into Haiku Depot and search for "netbeans" in the "All packages" tab :
Proceed with the installation.
When you launch NetBeans IDE, it will propose the main window below :
If you go into the about page, the current version is 23 :
Now click on "New Project" and select "Java with Maven > Java Application" :
Then click on "Finish" :
As you can see the "Mavenproject1.java" file will contain a basic "Hello World!" application :
Click on the Run icon (the green arrow) :
Great you should see in the output console the "Hello World!" message :)
Now what about running the build and run in a Terminal ?
For that it's quite simple. Y
ou need to go into the "/boot/home/NetBeanProjects/mavenproject1" folder and compile the source with the Maven tool (mvn) :
cd /boot/home/NetBeanProjects/mavenproject1
/boot/system/apps/netbeans/java/maven/bin/mvn compile
It should compile the Java application in the "target/classes" folder.
Now, to launch the application, type :
java -classpath ./target/classes/ com/mycompany/mavenproject1/Mavenproject1
Congratulations, you have made your first Java application under Haiku !