This Java tool converts Oracle Forms Binary (FMB) files to XML and then cleans the XML to generate readable TXT format.
The resulting _fmb.txt files are easy to search through, both for yourself and for AI. The XML and TXT are also very useful for version control.
- Java 8 or higher
- Oracle Forms installation (for conversion utilities)
- Copy
fmb2txt.jarto the server, including aconfig.propertiesfile (seeconfig.properties.example). - Double-click the
jarfile or run the tool with the following command:
java -jar fmb2txt.jarThe tool performs the following steps:
- Converts all
.fmbfiles to XML using Oracle Forms utilities. - Cleans the XML files by removing graphical attributes and elements.
- Generates readable TXT files from the cleaned XML.
Configuration is read from in config.properties.
The config.properties file should include:
oracle.path: Path to Oracle Forms installation (mandatory)input.directory: Directory containing FMB files (default: current directory)xml.output.directory: Directory for XML output (default: "xml")txt.output.directory: Directory for TXT output (default: "clean")
- Skips conversion and cleaning for files that are already up-to-date
- Transforms trigger and program unit text for better readability
- Removes graphical attributes (positioning, colors, fonts, etc.)
- Formats the output into a hierarchical text structure
- Displays conversion statistics at completion
Requirements for building:
- Maven
To package the tool, navigate to the project directory and run the following Maven command:
mvn clean packageThis generates a JAR file with all dependencies included in the project's root directory.
You can also use the Maven plugin in VS Code via Lifecycle > package.