Prerequisites
Before you begin, ensure you have the following installed:Java Development Kit (JDK) 8 or laterVerify your Java installation:You should see output indicating JDK version 8 or higher.MySQL ServerThe application requires a MySQL server instance to connect to. Install MySQL Server 5.7 or later:
This project uses Java Swing for the GUI and JDBC for database connectivity, both of which are included in the standard JDK.
- Download from mysql.com
- Or install via package manager (apt, brew, etc.)
- IntelliJ IDEA (Community or Ultimate)
- Eclipse IDE for Java Developers
- Visual Studio Code with Java extensions
Clone the Repository
Clone the project repository to your local machine:
Replace
<repository-url> with your actual repository URL.Project Structure Overview
Familiarize yourself with the project structure:Key Directories:
src/- All Java source files organized by package (com.app)lib/- Contains MySQL Connector/J JDBC driverdoc/- Project documentation and resources
- Model (
Model.java) - Database connection and query execution - View (
View.java,SqlEditorView.java) - User interface components - Controller (
Controller.java) - Connects model and views, handles events
Configure Your IDE
- IntelliJ IDEA
- Eclipse
- VS Code
- Command Line
- Open IntelliJ IDEA and select File → Open
- Navigate to the project directory and click OK
- IntelliJ should automatically detect the Java project structure
- Add the MySQL JDBC driver to the project:
- Go to File → Project Structure → Libraries
- Click + → Java
- Navigate to
lib/mysql-connector-j-9.2.0.jarand select it - Click OK to add it to the project
- Configure the JDK:
- Go to File → Project Structure → Project
- Set Project SDK to JDK 8 or later
- Set Project language level to 8 or later
- Mark
srcas the Sources Root if not already marked (right-click → Mark Directory as → Sources Root)
IntelliJ IDEA provides excellent support for Java projects with automatic code completion, debugging, and refactoring tools.
Verify Setup
Test that your environment is correctly configured:
-
Compile the project (from the project root):
- If compilation succeeds without errors, your setup is complete!
For detailed build instructions, see the Building guide.
Next Steps
Now that your development environment is set up:- Learn how to build and run the application
- Understand the project dependencies
- Explore the architecture components for detailed class documentation
Troubleshooting
Java version issues If you encounter errors related to Java version compatibility:- Ensure you’re using JDK 8 or later
- Check your
JAVA_HOMEenvironment variable - Verify your IDE is using the correct JDK version
ClassNotFoundException for MySQL driver classes:
- Verify
mysql-connector-j-9.2.0.jaris in thelib/directory - Ensure the JAR is properly added to your IDE’s build path or classpath
- Check that the
-cpflag includes the correct path to the JAR
- Mark the
srcdirectory as a source root in your IDE - Refresh or reload the project
- Check that the package structure matches the directory structure (
com/app)