Presentation of NetBeans 4.0 - Plugins

Contributed by Jean-Baptiste Renaux as part of the Win With NetBeans comptetition

This article is part of a three article series:

Practicing NetBeans

Summary:

J2ME

Java applications can work on mobile phones, interactive televisions; they are an eldorado for Java. Sun provide a development kit for J2ME. This one is integrated in NetBeans, by installing the mobility kit.

You will get him by this web address: http://www.netbeans.org/kb/articles/mobility.html

Then, you will get J2ME templates, libraries and emulators:

click for fullsize

Create a J2ME Application

We'll use a template project, to explorer the different functionalities of the mobility plug in:

Select File -> New Project (Ctrl-Shift-N).
Choose the sub-category " Mobile " -> " Mobile Application "
Click on Next, and name the project " MyJ2ME " .
By letting all the par default choices, click " Finish " .

You'll see that NetBeans has used a template class , with this elements :

You can run the project, which will start in a cellular phone emulator.

Project Configurations

We can create diferents configurations, allowing us to use our project in diferents contexts.

click for fullsize

Configuation Window

Now, we will start our project with the " WithKeyboard " configuration :


Configuation Window

Configurations allow furthermore to select an obfuscation level, how is created the jar file, how is created the javadoc, ...

J2EE with Sun Application Server

The next version of NetBeans will provide a key feature, which is the integration with Sun Application Server 8.1. Furthermore, an EJB and Web Services support will be added. These functionalities are yet reserved to expensive IDE.

NetBeans Profiler

The aim of this plugin is to provide a powerful and flexible profiling solution that is tightly integrated into the IDE workflow. By using it, you'll have an "overhead vision" of your java software while they are executing.

It will be released on April 2005, and some functionality are already usable in the beta version.

If you want to test it:

Notice:
In the beta version, you have to use a 1.4 java virtual machine. Consequently, if you have a 1.5 one, you can either select the "-source 1.4" argument with the compiler, or install a 1.4 one. Only the second item completed on my computer.

Here are some screen shots:


This window allow you to create different profiling configurations

click for fullsize

Threads are shown in beautiful visual reports

Miscellaneous

NetBeans have got a wide variety of " plug-in " to support other languages like C/C++, Fortran, ... or even UML. A profiler, allowing to test your application's performance has been released too. We won't take about them here, we let you do it by your own :-). Although, most of the plug-in are available for the 3.6 NetBeans release, and they are not usable with the fourth version. We hope it will be arranged soon.

Plug-in list: http://plugins.netbeans.org/

Miscellaneous

Advantages:

Disadvantages:

Conclusion

NetBeans allow programmers a great ease of development, by taking charge of difficult and secondary parts of your projects. By using NetBeans, you will save time, money, and free your mind. Consequently, you can concentrate easily on your code.

Links :
http://www.netbeans.org: Official NetBeans web site
http://java.sun.com: Official java web site, where you can download NetBeans in a java-integrated bundle.