Tag Archives: NetBeans

Ubuntu 12.04 LTS and Java applications menu bar font color

Java LogoUbuntu 12.04 LTS named Precise Pangolin has been released few days ago. I did some testing and I can't really say I'm disappointed because that happened a while ago when Canonical released first Unity powered Ubuntu version. But lets be fair and ignore Unity for a moment and focus on something else. Latest Ubuntu is full of bugs. For example if you had an idea to do some coding using NetBeans Java IDE on your shiny new Ubuntu 12.04 LTS think again. To be honest you can try to do some coding if you don't mind not seeing your menu bar due to bug where Java applications use wrong menu bar font color. Also the latest version of Ubuntu light themes exposes an old bug where Java applications loose menu border. This bug first appeared with default Gnome 2 GTK+ theme Clearlooks, if you need workaround for that one here it is. It isn't clear is this Java Swing API bug or Ubuntu light themes bug but fortunately there is a workaround. In this article I will present PPA with modified version of Ubuntu light-themes package that works around this issue.

Continue reading

Latest Oracle (Sun) Java JDK and JRE 6 on Ubuntu operating systems

Java LogoLets be honest, coding on Linux will probably include some Java based application like Eclipse or NetBeans. That's actually not a bad thing because we get to carry our development environment with us when using other proprietary operating systems. But since Oracle sliced "Operating System Distributor License for Java" and now nobody can legally host Java repository we have to install Java manually by downloading their JRE or JDK blob from Oracle servers. That isn't exactly hard thing to do but we don't want to give Oracle the pleasure of knowing that they made our already crowded day a little more complicated. So here I'm presenting work of excellent Debian packaging work by Janusz Dziemidowicz and a fellow open source enthusiast Martin Wimpress from Flexion.Org. These guys made it possible for us to create Java JDK 6 and JRE 6 deb packages and create local Java repository our selves.

Continue reading

Qt 4 C++ development with Qt 4 Creator or Netbeans on Ubuntu Linux

Qt logoSo you want to develop GUI applications using Qt4 framework on Ubuntu Linux? No problem. Everything what you need is at the tip of you fingertips (official Ubuntu repository to be exact). Here's what you need to do to have Qt 4 Assistant, Qt 4 Designer, Qt 4 Linguist and last but not least important Qt 4 Creator (following is all one line at the terminal):

sudo apt-get install build-essential qt4-designer qtcreator qtcreator-doc qt4-demos qt4-doc qt4-dev-tools libqt4-dev

Now feel free to go to Applications -> Programming -> Qt 4 Creator and do something creative.

Qt 4 C++ Netbeans development

But what if you want to use Netbeans to develop Qt 4 C++ applications? Piece of cake. Follow me... First step is to install Netbeans (you've probably guessed that one).

sudo apt-get install netbeans

Next step is to start Netbeans by going to the Applications -> Programming -> Netbeans. Netbeans is primarily Java IDE so we must make sure that Netbeans has C++ support plugin. So inside Netbeans interface we go to Tools -> Plugins and then switch to "Installed" tab. Here we must make sure that "C/C++" plugin is amongst installed plugins. If not, we switch to "Available plugins" tab and put checkbox next to "C/C++" plugin and click install at the bottom of the dialog. After "C/C++" plugin is installed along with it we acquired Qt 4 project support for Netbeans.

But there is one thing we must do before we start coding. We must tell Netbeans the path to the "qmake-qt4" program necessary to compile Qt 4 applications. We need to go to Tools -> Options and switch to the "C/C++" tab. Next to the "QMake Command" label we must enter path to the "qmake-gt4" program. If you are using Ubuntu Linux operating system you need to enter this path:


Now click OK and find "Hello World" tutorial like this one. So here you go, now you have full blown Qt 4 development environment inside you Ubuntu box.

Ubuntu Netbeans and LAMP server with Xdebug as non-root user

In this article I'll show you how to setup Linux Apache Mysql PHP (LAMP) web development environment on Ubuntu Linux with your web site files in your home directory. This way you can easily develop for web as non-root user. If you are trying to install Linux Apache Mysql PHP on Windows, I'll point you to one of my previous articles where I have explained just that:

Apache, MySQL, PHP server on Windows

My goals for this session are to install Apache, MySQL and PHP with Xdebug module for PHP development debugging. We will setup Xdebug and use it with Netbeans, but once Xdebug is properly installed, you can debug your applications with any other application like Eclipse. The most important thing for a web developer or web programmer is to be able to easily modify his web development files without becoming root for everything he is working on. I will show you how to instruct Apache to make virtual host in your home directory. At the end of it all I will install Netbeans and create sample project to work with our new development environment. So lets get started...

Continue reading