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.jar
to the server, including aconfig.properties
file (seeconfig.properties.example
). - Double-click the
jar
file or run the tool with the following command:
java -jar fmb2txt.jar
The tool performs the following steps:
- Converts all
.fmb
files 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 package
This 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.