This project addresses the modernization and porting of a finite-element-method framework for rotating electrical machines from Ubuntu 16 to Ubuntu 24. The codebase comprising of C, C++, Fortran, Lex and Yacc relied on outdated compiler behaviors and build scripts that are incompatible with modern toolchains. The goal was to update and replace K&R-style declarations with modern ANSI-style, legacy Fortran syntax, incorrect header files and resolve linker errors between different working directories. Lex/Yacc syntax were recompiled with Flex/Bison and build scripts were used to speed up the compiling process. The updated framework now compiles on Ubuntu 24, producing the interactive GUI (AceMain) and analysis routines (Acek01). Simulations for magnetic field plotting and mesh visualization run without error. This successful port enables continued use of the framework for two-dimensional steady-state FEM analysis on modern systems.