Increasing memory available to Netbeans

I’ve some troubles editing large files (over 1Mb) with Netbeans: editing gets slower and freezes for many seconds. The IDE Faq actually says: “The IDE automatically determines optimal Java VM memory settings based on the size of physical memory. Rarely you might want to change the heap size.”

Since the performance are disappointed I want . . . → Read More: Increasing memory available to Netbeans

Chandler and the lost collections

No, it’s not the title of a movie. Today I’m trying to deal with some lost collection on the Chandler calendar server.

Since I can’t seem to find them from the interface I decided to analyze the derby database myself. To do so I put it into the Netbeans Derby database directory, which in my . . . → Read More: Chandler and the lost collections

Debugging PHP code with Netbeans

Today I try to enable debugging of PHP with Netbeans on the windows platform. For this reason I’ve downloaded the thread safe version of xdebug and placed it in my extension directory, in my case C:\easyphp3\php\ext

As explained in “Introducing xdebug” to activate it I added the following in my php.ini

zend_extension_ts=${path}\php\ext\php_xdebug-2.0.4-5.2.8.dll xdebug.remote_enable=1

After restarting . . . → Read More: Debugging PHP code with Netbeans

JAX-WS 2.1 second day

Today I tried again Netbeans 6.5 and magically this suggestion appeared

**************************************WARNING*************************************** To use JAX-WS 2.1 with JDK 6, newer versions of API jars need to be in bootclasspath before rt.jar. To do this you can use Java endorsed mechanism to override what is in Java platform. The easiest way to do so is to . . . → Read More: JAX-WS 2.1 second day

Netbeans 6.5 – Error starting wsgen

Here is how I have lost a lot of time for a stupid error.I could not compile any more my webservice project because of the following error.

wsgen-init: wsgen-KinesService: C:\Users\stefano\Documents\NetBeansProjects\kines_api\nbproject\jaxws-build.xml:18: Error starting wsgen: BUILD FAILED (total time: 6 seconds)

According to this article only jaxb-api.jar and jaxws-api.jar have to be copied, but this approach didn’t . . . → Read More: Netbeans 6.5 – Error starting wsgen

Remote debugging with Tomcat and Netbeans

Remote debugging is sometimes useful to identify bugs that are not easily reproducible in the local environment.

On the server in the .bash_profile of the tomcat user I put the following.

export JAVA_HOME="/usr/local/jdk1.6.0" export CATALINA_HOME=/usr/local/tomcat export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" export JPDA_ADDRESS=8000 export JPDA_TRANSPORT=dt_socket

Shut down and start up again tomcat to activate the debugging port 8000.

. . . → Read More: Remote debugging with Tomcat and Netbeans