A: 

Using ProcessExplorer, I found a bunch of java.exe's running with the following command-line:

"C:\Program Files\Java\jdk1.6.0_14\jre\bin\java" "-Djruby.home=C:\Program Files\NetBeans 6.5.1\ruby2\jruby-1.1.4" -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver "-Djavax.net.ssl.trustStore=C:\Program Files\glassfish-v3-prelude\glassfish\domains\domain1/config/cacerts.jks" "-Djavax.net.ssl.keyStore=C:\Program Files\glassfish-v3-prelude\glassfish\domains\domain1/config/keystore.jks" "-Djava.security.policy=C:\Program Files\glassfish-v3-prelude\glassfish\domains\domain1/config/server.policy" -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory "-Djava.security.auth.login.config=C:\Program Files\glassfish-v3-prelude\glassfish\domains\domain1/config/login.conf" "-Djava.endorsed.dirs=C:\Program Files\glassfish-v3-prelude\glassfish/lib/endorsed" "-Djava.ext.dirs=C:\Program Files\Java\jdk1.6.0_14\jre/lib/ext;C:\Program Files\Java\jdk1.6.0_14\jre/jre/lib/ext;C:\Program Files\glassfish-v3-prelude\glassfish\domains\domain1/lib/ext;C:\Program Files\glassfish-v3-prelude\javadb/lib" -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput "-XX:LogFile=C:\Program Files\glassfish-v3-prelude\glassfish\domains\domain1/logs/jvm.log" -Xmx512m -XX:NewRatio=2 -Xdebug -Xrunjdwp:transport=dt_socket,address=3251,server=y,suspend=n -client -jar "C:\Program Files\glassfish-v3-prelude\glassfish\modules\glassfish.jar" --domain domain1 --domaindir "C:\Program Files\glassfish-v3-prelude\glassfish\domains\domain1"

It appears that NetBeans doesn't close them when I restart. Other than forcibly killing the .exe's does NetBeans have a feature to kill the old one when I do a build?

User1