Showing posts with label plugin. Show all posts
Showing posts with label plugin. Show all posts

Tuesday, October 30, 2012

NetBeans 7.2.x Tip of the Day: Sharing PMD Configuration Files

I use the PMD plugin for NetBeans 7.2 for my development. If you are not using it, you should consider it. The plugin uses the ruleset from PMD project for static code analysis. Members of my team asked which rules I use when I evaluate their code so that they can handle it before I look at their code. I thought it would be as simple as exporting it, but that was not the case.

I filed an enhancement request for the feature: Export PMD Default Configuration Ruleset. Until it is added as a feature, here is how to pass your selected ruleset along.

The file that contains the rules which I am using is called pmd.properties. The file is located in a couple of different places depending on if you are using Windows, or Mac OS X.

On Mac OS X it is located:

/Users/{USER_HOME}/Library/Application Support/NetBeans/7.2.1/config/Preferences
On Windows it is located:

C:\Users\{YOUR_USER_DIRECTORY}\AppData\Roaming\NetBeans\7.2\config\Preferences
I hope that helps if you need to share your rules.

Thursday, October 20, 2011

SerialVersionUID Generator for NetBeans 7.0.1

's SerialVersionUID Generator For NetBeans has been updated for use in NetBeans 7.0.1. If you have a need to generate SerialVersionUIDs for your Serializable classes. This is the plugin for you. You can download it from here.

http://kenai.com/projects/nb-svuid-generator/downloads/directory/nbms/nb7.0.1

Thursday, August 04, 2011

NetBeans 7.0.1 SerialVersionUID Generator Plugin Published

T.N.C.A, Serie H

This seems to be a common item that I publish, but the latest version is published for NetBeans 7.0.1 and can be downloaded here: serialVersionUID Generator. Another great job for to keep pace with the release.

Thursday, June 23, 2011

NetBeans 7.0 Tip: Generating SerialVersionUID for Serializable Objects

If you are doing any work on a class which implements Serializable, you should take the time to generate a unique serialVersionUID for the class. By default, the IDE will add a serialVersionUID which is defined as 1L.This is a rather poor substitute for doing it correctly. The serialVersionUID is extremely important in Web Development (Session scoped beans must be Serializable), and in Java Persistence API (JPA) which needs to be able to serialize entities.

I have covered this plugin in a previous blog post, but there is an updated NetBeans plugin to help you with serialization. The Kenai project is located here: serialVersionUID generator for Netbeans. The actual downloadable nbm for NetBeans 7.0 is located here: eu-easyedu-netbeans-svuid.nbm. It was the first plugin I looked for when I installed NetBeans 7.0.
Enhanced by Zemanta

Thursday, May 22, 2008

Using PHP Add-On (Plugin) on Sun Java System Web Server 7.0

Sun has a great product in its Web Server, but the PHP plugin (Web Server 7.0 PHP Add-On 1.0) is almost completely useless. It will do PHP perfectly well, but who simply uses just PHP.

There are a number of extensions that are available for PHP which are available. The plugin is a very vanilla compilation of PHP 5. Sun should have compiled the plugin with most, or all of the available extensions. This would have made the plugin a complete drop-in replacement for using PHP on Apache.

There is hope... The plugin is based on PHP 5.2.0. I have a simple set of instructions on how to use the binary from the PHP archive site for Windows to replace the missing functionality.

  1. Go to PHP Releases page and download the Windows binary.
  2. Unzip the binary files.
  3. Shutdown the Web Server administration site, and any instances.
  4. Go to the plugin directory and zip up the php plugin just in case... My directory is located in C:\Program Files\Sun\WebServer7\plugins.
  5. Copy the extensions directory from the unzipped files to the plugin directory.
  6. Copy the php.exe and php-cgi.exe to the plugin directory
  7. Copy the .dll files from the unzipped files in the root directory to the plugin directory.
  8. From a command line run php -v from the plugin directory. If it is missing any files that it needs, it should report them. Copy the missing files to the directory.
  9. Restart the instances and make sure the logs are clear.
The list below represents the .dll files which I have in my php plugin directory.
  • gds32.dll
  • libeay32.dll
  • libmcrypt.dll
  • libmhash.dll
  • libmysql.dll
  • libswish-e.dll
  • msql.dll
  • ntwdblib.dll
  • php5ts.dll
  • php_bz2.dll
  • php_curl.dll
  • php_dba.dll
  • php_dbase.dll
  • php_exif.dll
  • php_fdf.dll
  • php_gd2.dll
  • php_gettext.dll
  • php_gmp.dll
  • php_ifx.dll
  • php_imap.dll
  • php_interbase.dll
  • php_ldap.dll
  • php_mbstring.dll
  • php_mcrypt.dll
  • php_mhash.dll
  • php_mime_magic.dll
  • php_ming.dll
  • php_msql.dll
  • php_mssql.dll
  • php_mysql.dll
  • php_mysqli.dll
  • php_oci8.dll
  • php_openssl.dll
  • php_pdo.dll
  • php_pdo_firebird.dll
  • php_pdo_mssql.dll
  • php_pdo_mysql.dll
  • php_pdo_oci.dll
  • php_pdo_oci8.dll
  • php_pdo_odbc.dll
  • php_pdo_pgsql.dll
  • php_pdo_sqlite.dll
  • php_pgsql.dll
  • php_pspell.dll
  • php_shmop.dll
  • php_snmp.dll
  • php_soap.dll
  • php_sockets.dll
  • php_sqlite.dll
  • php_sybase_ct.dll
  • php_tidy.dll
  • php_xmlrpc.dll
  • php_xsl.dll
  • php_zip.dll
  • ssleay32.dll

Good luck and let me know how it works for you. I will see about posting an enhancement request to Sun to incorporate all of the extensions on version 2.0 of the add-on.

Popular Posts