The Source for Java Technology Collaboration
User: Password:



Joerg Plewe

Joerg Plewe's Blog

C with NetBeans on Linux ... check it out!

Posted by herkules on December 21, 2006 at 09:27 AM | Comments (10)

My current project is something with C on Linux. This is no fun, believe me. Especially when you are used to the rich development environment in the Java world.

What do we have on Linux? vi, emacs, make, kdevelop, gdb. Ouch.

Fortunately, Java tools reach out to that foreign, hostile world. First I tried Eclipse/CDT which works pretty well and I use it for my daily development. By far the best thing I could get hold of. The C/C++ module for NetBeans, which was at beta3 those days, was not in a productive state.

Today, I gave it a second try with all the brand new stuff. JDK6, NetBeans 5.5 and the new C/C++ development pack - surprise, surprise! It looks pretty polished and works like a charm.

NB/C wraps very nicely around existing Makefiles. This allowed me to browse a real complex project (>1mio LOC) within the IDE very soon. It also recognized the SVN structure immediately and guided me smoothly to checkin the NB projects just created. Another big plus is that it was very easy to create the NB projects completely separated from the source directories. I missed that in Eclipse (maybe it's my fault). And no more switching between 'perspectives' which I always found annoying. A matter of taste. Also, NetBeans 5.5 runs very smooth even on an X terminal.

So I had 2 lucky hours today exploring my new toy. Everything was so easy. Maybe tomorrow I will run into the issues. But thats OK for a first release. I'll just post the issues to the NB bug tracker. Typically they do respond quickly.

What I love about NetBeans is the speed of improvement. Subversion, UML, C/C++ and much more ... all that has been added just recently. So I'm really excited to see what comes next....

Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • What kind of project you have to do in C? Does everything has to be in C or just a limited part and the rest in Java? And why Linux? Why not Windows, with Visual Studio or another good IDE for C?

    Posted by: carmello on December 22, 2006 at 05:23 AM

  • No, its all C. The target is an embedded Linux platform, so it has to be Linux.

    Posted by: herkules on December 22, 2006 at 05:39 AM

  • Ok. To bad Java can not be used.
    Java is allready on cellphones and in some cars and you have a realtime specification for Java. So there may be hope for the future that we can limit the use of C/C++ code and enjoy in more places the power of Java.

    Posted by: carmello on December 22, 2006 at 03:20 PM

  • Yes. But in my case, this is kind of mobile middleware. This will be C for many years.....
    For application development, this is a different thing.

    Posted by: herkules on December 23, 2006 at 04:17 AM

  • Otherwise I'd love to work with NetBeans Mobility Pack. I fooled around with it, it's just great and even more mature than the C/C++ Pack.

    Posted by: herkules on December 23, 2006 at 04:22 AM

  • Dissapointed with Netbeans. So many times I tried it and so many times I got dissapointed. Last time after upgrading to the last stable 5.5 version all I got was an empty screen. Previous beta versions started fine but were exceptionally buggy. I tried to use the "JPA" support and the behaviour was really buggy. Even eclipse dali 0.4 (still development) offers a much more stable and reliable support for JPA.

    I think it's time for Sun to center on what they know to do well (Solaris, JDK, Storage, Hardware) and leave appart low quality products (Netbeans, Glassflish) that far away for helping Sun hurts the company's image of high quality products.

    Posted by: e_arizon_benito on December 27, 2006 at 08:48 AM

  • This blog was about NetBeans with C/C++ and hopefully no starting point for just another IDE flamewar. Moaning about potential JPA bugs is pretty far off topic.

    I feel sorry that you are disappointed, but blaming NetBeans for that saying it is a generally bad product is just not fair.


    BTW, have you reported your bugs?

    Posted by: herkules on December 27, 2006 at 09:35 AM

  • I found this C/C++ section in my Netbeans recently and have to say that is so cool.
    My project is about creating of some dynamic and static libraries and was I so surprised to see that this can be very easily done via netbeans.
    Netbeans is just perfect for C/C++ development as well as Java.
    Would like to see in future and some Linux GUI tools included too. I mean something like Glade and Qt designer.

    Posted by: nhydra on December 28, 2006 at 01:45 PM

  • I'm glad I'm not alone.... :)

    Posted by: herkules on December 28, 2006 at 02:14 PM

  • "vi, emacs, make, kdevelop, gdb. Ouch. " - what is that suppose to mean ?

    I am using emacs on a daily basis and you cannot compare it with no IDE. You've got everything you need and more inside emacs and you don't even have to touch the mouse. You've got support for all imaginable programing languages (Java, Perl, C, C++, Bash, PHP, ASM, Pascal, Lisp, etc). You also have email readers, news readers, irc clients, planners, calendar, sql interface, shell interface, spreadsheet, great community and whatever else you can think of.You can even expand emacs to fit your needs (if no one did it before you). So what are you talking about ???

    Posted by: mixandgo on February 03, 2007 at 12:31 PM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds