The manual build path compiles source files directly withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/efrain-svg/Potes_Freddy_ProgInterfacesG_U3/llms.txt
Use this file to discover all available pages before exploring further.
javac using the JARs already present in the repository’s lib/ directory. No Maven installation and no internet connection are needed. This is the quickest path to get the application running if you already have Java 17.
Prerequisites
- Java 17 or later — see Prerequisites
- No Maven required
Bundled JARs in lib/
| File | Purpose |
|---|---|
lib/flatlaf-3.6.jar | FlatLaf look-and-feel |
lib/flatlaf-extras-3.6.jar | FlatLaf extras — FlatSVGUtils, SvgIconLoader |
lib/jsvg-1.4.0.jar | SVG rendering engine (required by flatlaf-extras) |
Build steps
Compile all source packages
javac invocation (or at least modelo before controlador and vista) because they have cross-package dependencies.On Linux or macOS, replace
; with : in the -cp argument and / for \ in paths.Resource files
The i18n property files and SVG assets are read at runtime from the classpath. With the manual build these files are not copied toout\ automatically — they are loaded from src\ via a separate classpath entry. To ensure resources are found, add .\src to the runtime classpath:
| Path pattern | Purpose |
|---|---|
src/i18n/messages_es.properties | Spanish UI strings |
src/i18n/messages_en.properties | English UI strings |
src/i18n/messages_pt.properties | Portuguese UI strings |
src/assets/icons/*.svg | Toolbar and label icons |
Complete PowerShell script (from README)
Set-Location path to match your local checkout.
Troubleshooting
ClassNotFoundException: vista.ventana
ClassNotFoundException: vista.ventana
The
.\out directory is not on the classpath or the compilation failed silently. Verify that .\out\vista\ventana.class exists after the javac step. If it does not, re-run javac and check for compiler errors.NoClassDefFoundError: com/formdev/flatlaf/...
NoClassDefFoundError: com/formdev/flatlaf/...
One or more JARs from
lib\ are missing from the runtime -cp argument. Ensure all three JARs are listed and the paths are correct relative to your working directory.Classpath separator error on Linux or macOS
Classpath separator error on Linux or macOS
Windows uses
; as the classpath separator; Linux and macOS use :. Replace every ; in the -cp value with : when building outside Windows.Contacts are not saved after running on Linux or macOS
Contacts are not saved after running on Linux or macOS
personaDAO writes to the hardcoded path c:/gestionContactos/datosContactos.csv. On non-Windows systems this path is invalid. To fix this, edit src/modelo/personaDAO.java and replace the constructor’s new File("c:/gestionContactos") with a cross-platform path such as new File(System.getProperty("user.home"), "gestionContactos").