Category Archives: NetBeans

No splash screen on NetBeans

I’m not a fan of the splash screens the applications, even less on those that place it on top of all your applications all along.


The NetBeans splash screen is easy to hide. You can run Netbeans with the command line option “--nosplash” or add this option to the default ones in the configuration file. This configuration file is in different places depending on the operatin system, but it usually in:

GNU/Linux: "installation folder"/etc/netbeans.conf
Mac OS X: /Applications/NetBeans/NetBeans
Windows: C:Program FilesNetbeansetcnetbeans.conf

Now that you know where the config file is, edit it and add “--nosplash” to the netbeans_default_options option:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true --nosplash"

Debug console PHP applications with NetBeans

Assuming you already have PHP and NetBeans configured to debug code using XDebug, these are the steps to debug a console PHP application:

In the terminal window export the value of the XDEBUG_SESSION_START get parameter that NetBeans adds when starting a debug session on the web brower. It’s usually netbeans-xdebug so you should run this for GNU/Linux or Mac OS X:

$ export XDEBUG_CONFIG="idekey=netbeans-xdebug"

And this for Windows (notice the lack of quotes):

C:> export XDEBUG_CONFIG=idekey=netbeans-xdebug

You can change the XDEBUG_SESSION_START value inside PHP NetBeans options in the Debugging tab:

configure netbeans debugging options

Then inside NetBeans set any line you want as a stop point and start the debugger as usual pushing the debug button:

netbeans debug button

Your web broser should open a new tab with the current web being developed. Now in the terminal window that you exported the XDEBUG_CONFIG variable run the php file you want:

$ php my_php_file.php

The debugging process should start and you’ll be ready to go:



Fix Netbeans fonts after installing Wine

As I wasn’t going to use Wine that much and broking my fonts pissed me off I decided to completelly uninstall it.

sudo apt-get remove ttf-mscorefonts-installer
sudo apt-get remove wine1.6 wine1.6-i386 wine-mono0.0.8 wine1.6-amd64 wine-gecko2.21 winetricks
sudo apt-get autoremove
rm -rf ~/.wine ~/.winetrickscache ~/winetrickscache ~/winetricks

After all this fonts still were wrong but finally this fixed it:

sudo apt-get remove fonts-unfonts-core

Don’t forget to close and open again Netbeans.