PE/COFF 4J
Java Engineering Library for Portable Executables
About
PE/COFF 4J is a java engineering library for portable executables, the format used by Windows. It has the following features:
  • Parser for Windows executables and DLLs.
  • Assembler for creating and modifying executables and DLLs.
  • Resource directory parser - understands version info, icons.

PE/COFF 4J is licensed under the Common Public License (CPL).

Download
The latest download is available from the Project Page.
Usage
The following snippet shows how to parse an executable.
package org.boris.pecoff4j;

import org.boris.pecoff4j.io.PEParser;

/**
 * An example demonstrating parsing an executable.
 */
public class ParseExecutableTest {
    public static void main(String[] args) throws Exception {
        PE pe = PEParser.parse("c:/windows/system32/notepad.exe");
        System.out.println(pe);
    }
}
Change History
V0.0.1
  • Initial version.