This guide walks you through everything you need to have the Sistema de Gestión Académica running on your machine and logged in as one of the three default users. By the end you will have created the SQL Server database, configured your connection credentials, compiled the project with Apache Ant, and verified role-based access through the login screen.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kenri89/PROYECTO_UTP_AED_1_1/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites before you begin:
- Java 21 or later installed and available on your
PATH - Microsoft SQL Server running locally (any recent Express or Developer edition works)
- Apache Ant installed, or NetBeans IDE (which bundles Ant automatically)
- Git to clone the repository:
git clone https://github.com/kenri89/PROYECTO_UTP_AED_1_1.git
Create the database
Open SQL Server Management Studio (SSMS) or any SQL Server client and run the following statement to create the database:Next, execute the full
From SSMS, use File → Open → schema.sql and click Execute, or run it from the command line:
schema.sql file from the project root against that database. This creates the five required tables and inserts the three default users:| Table | Description |
|---|---|
usuarios | Authentication table — stores username, password, and role |
Cursos | Course catalog with code, name, credits, and semester |
Estudiantes | Student records keyed on carnet |
Matriculas | Enrollment records linking a student carnet to a course code |
Solicitudes | Academic requests submitted by students |
Configure credentials
Open The
src/config.properties in any text editor and update the values to match your SQL Server installation:ConexionSQL utility reads this file at startup using ConexionSQL.class.getClassLoader().getResourceAsStream("config.properties"). All seven properties (db.server, db.port, db.name, db.user, db.password, db.encrypt, db.trustCertificate) must be present or the JDBC connection will fail and the application will fall back to local TSV files.Build and run
From the project root directory, compile and launch with a single Ant command:Ant reads
build.xml (which delegates to nbproject/build-impl.xml), compiles all sources under src/, bundles the libraries from lib/, and launches the main class gui.Main.Alternative — NetBeans IDE:- Open NetBeans and choose File → Open Project.
- Navigate to the cloned repository root and open it as an Ant project.
- Press F6 (or click the Run Project button) to build and run.
Log in
The schema seeds three default accounts. Enter the username, password, and select the matching role from the drop-down before clicking Ingresar:
On successful login, a welcome dialog confirms your role and the main window (
| Username | Password | Role (drop-down) | Access |
|---|---|---|---|
admin | 1234 | Administrador | Full access — courses, students, enrollment, history, requests, and admin request management |
secretaria | 1234 | Secretaria | Courses, students, enrollment, and student requests |
estudiante | 1234 | Estudiante | Own enrolled courses, academic history, and submitting requests |
MenuPrincipal) opens showing only the navigation buttons that apply to your role.Local TSV fallback: If SQL Server is not reachable at startup, the application automatically reads and writes data to tab-separated files stored in the
~/.proyecto_utp_aed_datos/ directory in your home folder (PersistenciaAcademica handles this transparently). Changes made in offline mode are persisted to those TSV files and will be available the next time you run the application without a database connection.