UTF Byte Order Mark remover

With this little windows command line tool you can remove the Byte Order Mark (BOM) from any files within a given directory recursively (ie. all .java files in the directory src/).

Download: bomremover.zip (sourcecode inside)

Usage:

  1. Unzip the file to arbitrary location
  2. Open a cmd-window at this location
  3. call bomremover.exe pathWhereToRemoveBom fileMatchingPattern
    i.e.: bomremover.exe C:\work\java\myprogram\src *.java 
  4. follow the on-screen instructions (press return twice)
  5. success