A Java-based console movie booking application that lets users explore cities, browse theaters, view show timings, and book seats dynamically β all backed by a powerful MySQL database.
Create the database:
CREATE DATABASE bookmyshow;
Import the provided SQL schema and data:
mysql -u root -p bookmyshow < bookmyshow.sql
Make sure youβve compiled the .jar
file and downloaded the MySQL connector .jar
.
Then run the following command in your terminal:
java -cp "BookMyMoviesApp.jar:mysql-connector-java-8.0.28.jar" app.BookMyMoviesApp
β Replace the file paths with absolute paths if required (especially on macOS/Linux).
π¦ BookMyMoviesApp
βββ app/
β βββ BookMyMoviesApp.java
βββ db/
β βββ DBConnection.java
βββ model/
β βββ City.java
β βββ Movie.java
β βββ Theater.java
β βββ ...
βββ bookmyshow.sql
Kartik Jindal Final Year B.Tech CSE Student @ MIET, Meerut