About me
For students
Software notes
Page content
Software notes
Ant properties in NetBeans project
NetBeans profiler fails to find processes
Google Desktop on Windows
bibtex4word URL bug

Software notes

This page contains some (unsorted) software notes, hints, workarounds for bugs, etc. in case they may be useful to someone but me. I am not responsible if something does not work for you as expected, you break your system or anything else you might do based upon information on this site ;-)

Ant properties in NetBeans project

If you have set up an Ant build process for your software project and use NetBeans for development, you may want to access the properties of your Ant build configuration in your NetBeans freeform project configuration, e.g., not to configure different paths twice. This is especially helpful if you work in a development team where each member maintains her/his own copy of the Ant configuration.

To import your Ant properties, open your nbproject/project.xml file and include your Ant properties file. In order to do this, look in the project.xml file for a section called:

<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
<name>Project Name</name>
<properties />

Replace the <properties/> element with something like:


If you use a relative path like in the example above, the path is relative to the folder containing the nbproject folder.

After importing your properties file, you can use the configuration elements of the imported property file in your project.xml. For example, if we assume that the imported build.properties contains a configuration for the JBoss home directory (jboss.home=...), then we could use it in a classpath configuration auch as <classpath mode="compile">${jboss.home}/client/jbossall-client.jar;../lib/commons-logging-1.1.1.jar</classpath>.

Beware: After you do that, don't use the NetBeans project properties customizer as it will overwrite your variable references with the expanded paths, e.g., it would store <classpath mode="compile">C:/jboss-6.0.0.GA/client/jbossall-client.jar;../lib/commons-logging-1.1.1.jar</classpath> for a jboss.home=C:/jboss-6.0.0.GA configuration in the previous example.

NetBeans profiler fails to find processes

If you want to attach the NetBeans profiler to a running process, but get an error message "error getting running processes" in the profiler's attach window, you may have to add the JVM option "-XX:+PerfBypassFileSystemCheck". The reason is most probably that you have your directory for temporary files on a FAT32 filesystem on Windows – see description of bug 5042659.

Google Desktop on Windows

Change the data directory

This can be done with the registry editor (regedit) by changing the following key:

HKEY_CURRENT_USER\Software\Google\Google Desktop\data_dir

Configure "Desktop Search" as default

When pressing Enter after entering the search criteria in the in the desktop bar, Google Desktop opens the Web search results by default. This default setting cannot be changed from the "Google Desktop Settings" Web page. Open the quick search field by pressing "Ctrl" two times, press "Options" and select "Desktop Search" as default option.

bibtex4word URL bug

Note: The following bug is fixed at least since version 1.66 of bibtex4word.

Bibtex4word version 1.55 and probably previous versions have a bug that incorrectly translates the tilde character in URLs to a non-breakable space. For example, a URL of "http://example.com/~user" would be incorrectly transformed to "http://example.com/ user"