James Selvakumar’s Blog

February 4, 2009

Finally, my blog appeared in planetnetbeans…!

Filed under: netbeans — James @ 3:49 am

Long long ago (about 6 months back), I registered my blog in planetnetbeans.org. Whenever I post a blog entry about netbeans and file it in my “netbeans” category, I use to check whether it appears in planetnetbeans.org. It never appeared.

I even sent a mail to the support team explaining my frustration. They asked me to register my blog again. I did exactly the same. Another 3 months passed without any fruitful result.

To my surprise, as I was casually surfing planetnetbeans.org today, I found my blog being listed there. 🙂

See u guys with some interesting stuff soon…


December 13, 2008

Ubuntu 8.10 – A Productive Java Development Environment

I recently started using Ubuntu 8.10 at my workplace as well. Till then, I have been using Ubuntu only at home. For me, Ubuntu@Work was very different from Ubuntu@Home. I mostly surf, blog, listen to music and play some games at home. But Ubuntu@Work was a completely different scenario.

Since I’m new to this linux stuff, it took me some time to configure things like static ip address, host names etc. But once everything was setup, things started moving quickly. I initially had doubt in my minds about the font rendering of NetBeans (or any swing app for that matter) under linux. I even wrote an post showing my frustration with NetBeans font rendering when compared to Eclipse. But with jdk.1.6.10, font rendering is smooth and NetBeans works like a champ! You can see some samples here:


November 30, 2008

And now NetBeans 6.5 is there in my Ubuntu-8.10

Filed under: netbeans,ubuntu,unix-linux — James @ 1:44 pm
Tags: ,

NetBeans is my favourite IDE for java development. I’ve been using NetBeans from version 4.1 onwards and I can’t believe that it has progressed and transformed itself so well. Right from version 5.0 onwards, NetBeans has been making amazing strides in terms of developer adoption. And the recent 6.5 release is really fantastic. It’s fast, it’s responsive and got many new cool features. Though I use NetBeans at office which runs on Windows XP, I haven’t tried that yet on my Ubuntu-8.10. So, I thought it’s time to give it a go.

Installing NetBeans in Ubuntu in very easy. The only pre-requisite for installation is to have a suitable JDK on your machine. That too is not a problem if you download the NetBeans + JDK bundle. But I thought of installing them separately. By default, Ubuntu-8.10 doesn’t come with JDK pre-installed, so you have to install it manually. Installing JDK in Ubuntu is just a matter of issuing a “one line” command. Just open your terminal and type:

“sudo apt-get install sun-java6-jdk”

or, if you are a person who prefer GUI more than command line, open your Synaptic Package Manager and look for “sun-java6-jdk” and install it. What surprised me though was the availability of the latest JDK, i.e, “JDK 6 Update 10”. Installing JDK had never been so easy.


April 7, 2008

Subversion and NetBeans – A quick start guide

Filed under: java,netbeans,version control — James @ 10:24 am
Tags: ,


Subversion is arguably the most popular version control system as of now. No wonder NetBeans has very good support for Subversion. I personally feel that a java developer must be familiar with both these tools. This article shall help you to get started with both these tools.


– To create a simple java project in NetBeans.

– To import the java project into the subversion repository.

– To commit the changes made in a java source file.

– To view the revision history of a java source file which was changed.

– To rollback to the previous revision of the java source file.


March 12, 2008

Can an underdog tout world champions?

Filed under: java,netbeans — James @ 3:58 pm
Tags: ,

This post is definitely not about a football or cricket match. It’s about an IDE.
An IDE which was considered “dead” not longback, is creating lot of buzz today.(evident from the high hits for netbeans related articles in my blog 🙂 ) It’s like a nail-biting cricket match, where a team would come from behind to win the match and eventually the series. (Like what India did to Australia in the CB series).

NetBeans too, remains the “underdog” in the much touted “IDE” war. No victory is achieved without sincere effort and NetBeans is no different. But as we have seen in many cricket, football matches, “underdogs” can be really dangerous and can tout even “world champions”.


March 8, 2008

NetBeans 6.1 stands up to its promise

Filed under: java,netbeans — James @ 9:23 am

NetBeans team just released their 6.1 Beta release and I was itching my hands to try it out. I’ve been using NetBeans from 5.0 release onwards (Matisse converted me from Intellij IDEA to NetBeans). I can see the progress NetBeans is making at an astonishing rate. (That too as an open source project)

Though I like and use NetBeans 6.0 a lot, I found it to be very slow when compared to Eclipse 3.3. I have explained about it here.

Especially I felt that code completion needed improvement. Eclipse beats NetBeans hands down in this area for sure.

So when the 6.1 Beta release promised me that “improved performance” is the theme of the release, I thought of trying it out.


NetBeans 6.1 Beta released

Filed under: java,netbeans — James @ 3:48 am

NetBeans 6.0 created new waves of enthusiasm among java developers. It is intuitive, easy to use, supported the latest standards and is evolving at a rapid rate.

NetBeans 6.0 brings with it a lot of goodies and is catching up fast with other ides out there.

No wonder, NetBeans won 3 “developer.com” awards last year and won the “jolt” award this year.

However, NetBeans 6.0 was not very efficient in terms of performance. As you create more projects and use the ide the more, NetBeans becomes slower and slower. And if you develop some JSP pages, you can feel the real pain.

Following are the most annoying things I faced in NetBeans 6.0:


February 24, 2008

Installing NetBeans 6.0 on Ubuntu-7.10

Filed under: netbeans,virtualization — James @ 4:40 pm

I followed the instructions mentioned in this NetBeans Wiki to install NB 6.0 on my ubuntu.

But I feel some more information can be added to this wiki.

For example, when i ran the command “sudo apt-get install sun-java6-jdk“, ubuntu complained to me that this package is not found in its repositories.

The problem here is that the package sun-java6-jdk is available in the ubuntu “multiverse” repository which is disabled by default.

In ubuntu, the repositories are defined in the file “/etc/apt/sources.list”. Take a backup of this file, in case if you want.

Now open this file and uncomment the lines which define the “universe” and “multiverse” respoitories.

It should look something like this now:

# Line commented out by installer because it failed to verify:
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
# Line commented out by installer because it failed to verify:
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# Line commented out by installer because it failed to verify:
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
# Line commented out by installer because it failed to verify:
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

The job is not done yet.

Run the command “sudo apt-get update” in the terminal to instruct ubuntu to update the package details w.r.t the repositories we enabled just now.

The process might take some time. Wait patiently.

Once the update is done, ensure that the “sun-java6-jdk” package is available in the repositories, by issuing the command “apt-cache search sun-java6-jdk“. You might get something like this in the terminal window:

james@kuttima-gifty:/etc/apt$ apt-cache search sun-java6-jdk
sun-java6-bin - Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)
sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6
sun-java6-jre - Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)

Now we are rest assured that our desired packages are available.

Now run the commmand “sudo apt-get install sun-java6-jdk” in the terminal. Depending on your connection speed, this might take quite some time.

Then just follow the instructions to complete the installation.

In the meanwhile, don’t forget to download the “netbeans 6.0” installer from netbeans.org. Once you downloaded the installer, you can run it by navigating to the appropriate folder.

In my case, i needed to issue the following command:

sudo sh netbeans-6.0.1-ml-javaee-linux.sh

This will invoke the netbeans installer and just follow the instructions to complete the installation process.

That’s it, netbeans will install itself smootly on your machine.

February 8, 2008

Eclipse Vs NetBeans again (on ubuntu)

Filed under: eclipse,java,netbeans,ubuntu — James @ 4:02 pm

Though i’m still fighting with ubuntu gusty to get the right screen resolution, i thought of giving my favourite java ides a try on gusty.

On windows, i tend to use netbeans more than eclipse, (mainly because i work with JSF/JPA more as of now)

So i thought of seeing how these 2 friends of mine behave in ubuntu.

I love ubuntu for a lot of reasons. And the most important reason is the ease with which you can install most of the day-to-day applications.

Ubuntu has a wonderful “package manager” (similar to the childish Add/Remove programs in windows). With the synaptic package manager, you can almost install all applications you ever need.

So, i looked for netbeans first and i was bit disappointed to see only netbeans 5.5 in the repository. But i thought of downloading it, because, something is better than nothing, right?.

Downloading and installing netbeans-5.5 is a piece of cake in ubuntu. All we need to do is to open a terminal and type “apt-get install netbeans-5.5”. Whoa!

I thought of doing the otherway round, since i feel more comfortable seeing a UI than a command line, so i used the synaptic package manager to download netbeans-5.5.

Smooth. Everything went through fine, until i opened netbeans.

The font rendering was horrible. (May be because i had only jdk 1.5). But i must admit that NetBeans looked really horrible. I couldn’t spend much time with it because of the horrible fonts. Though it’s a swing issue, it gives really a bad image to netbeans.

Leave alone the font, the look and feel was even more horrible. I just couldn’t digest the default “ocean” look and feel. NetBeans looked like “odd man out” in my ubuntu desktop. I felt really sorry for netbeans, because, on windows, it’s very difficult for a non-java user to point out netbeans as a java application. But on linux, netbeans looked like an old volkswagon among new sedans like lexus. Pity you netbeans.

So, i thought of trying our beloved friend eclipse. Again installing eclipse was really really easy. No need to go to eclipse.org. Just the ubuntu package manager does the job for you. I really really like ubuntu a lot in this regard.

I started eclipse. Wowwww..It’s beautiful man. The fonts were superb and pleasing to the eyes. In the first impression itself, eclipse won my heart eventually. And the look and feel, that’s the same as i see in windows. Great job, eclipse team.

I don’t know whether it’s because of swt or not, but i really gotta love eclipse on ubuntu.

Eclipse is really the winner over netbeans (alteast in ubuntu).

(Note: I’m currently downloading java se 6 and netbeans 6.0. Let’s see how well netbeans 6.0 fare)

January 13, 2008

Java Web Development with Eclipse 3.3

Filed under: eclipse,java,netbeans — James @ 12:22 pm

Hi all,
Blogging after a long….break. I was travelling a lot for the last 1 month or so. I went to Singapore, Putrajaya, Malacca to name a few. And as a result, very little time for blogging.

If you are following my blogs, i blogged sometime back about core java development using netbeans 6.0 and eclipse 3.3.

Both are excellent open source IDEs that have their own strength and weakness.
I’ve been using both netbeans and eclipse and i’m pleased with both of them generally.

Before the advent of version 6.0, netbeans was not on par with eclipse for core java development. The responsive editor, fast code completion, incremental compiling etc, etc.. were some of the trademark eclipse strongholds which netbeans never managed to enter leave alone capturing.

But with 6.0, netbeans has made really a very huge stride in the areas which where it’s traditional letoffs.

But i always believed that java web development with netbeans has been superior compared to eclipse for a long time. The WTP project in eclipse has improved a lot over these days, so i thought of giving it a try.

Can eclipse do well against the likes of netbeans in java web development? Let’s see…

My environment:
Eclipse 3.3 Europa
JDK 1.6.0_03
Tomcat 6.0

So i thought of refreshing my servlet/jsp/jsp-el/jstl skills in the above mentioned environment.

One thing that impressed me is that eclipse, by default, supports many popular application servers/web containers than netbeans does.
There is support for all versions of tomcat, jboss (even for 5.0), websphere (ofcourse dude) and also JOnAS server.
But how come they can leave out glassfish, which is the reference app server for java ee 5?
(I heard that glassfish team has released an eclipse plugin. But i expected more from the number one java ide)

One thing i missed though, is a separate menu item to configure “servers”. That’s ok.

Then i started churning out a few servlets and jsps in my sample app. I changed the web.xml a few times (to configure servlet init parameters etc)
All was going well until i got an “out of memory exception”. The IDE displayed a window which suggested me to close the workspace.

That was ok with me. I was changing the web app many times and was redeploying it often. Occasionally, i restarted the tomcat server from within eclipse. So i thought that might have overloaded the ide.

I closed eclipse and then started it again. It started up smoothly, but some of the changes i made were not saved. That’s ok. Then when i deployed my web app, i got an error which said that
"Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

I was quickly able to reckon that tomcat might not have been stopped properly because of the ide crash.
So i attempted to start/restart the server from eclipse, but couldn’t.
Then i went to the task manager and closed the tomcat process manually.

I didn’t expect this though. I expected the IDE to recognize correctly whether tomcat is running or not and should not ask the user to manually close the process.

After closing the tomcat process i was able to deploy my webapp.

But as time went, eclipse threw more and more such errors, which frustrated me, as i have to go through the process of not only restarting eclipse but also stop the tomcat process manually.

To be honest, i haven’t reported this as an issue yet to the eclipse. I’ll be doing that shortly.
I’m sure they can fix these issues quickly and give us an update.

Other things i really appreciate is the nice xml editor, which really save a lot of time. I find the eclipse xml editor marginally better than that of netbeans.

More on the complaints, i feel the code completion needs to be improved for jsp-el and jstl.
I found virtually no code completion for jsp-el.

So by the current standing, eclipse 3.3 provides good if not great support for java web development. I haven’t explored the struts/jsf support in eclipse yet.
Eclipse needs to improve in the web development area, if it want to pose a strong fight to netbeans which is clearly superior here.

« Previous PageNext Page »

Blog at WordPress.com.