A console-based input/output Java program that supports movie ticketing and management functions. Depending on the role, such as guest, member, and admin, users can enjoy different functions such as movie listing, seat booking, user management, movie scheduling, etc.
- The program requires JDK 21 or later versions for compilation and execution.
- Make sure you have already installed a compatible JDK version.
- If not or if you face any jar compilation or runtime error, please download the latest JDK at https://www.oracle.com/hk/java/technologies/downloads/
-
Clone the repository:
git clone https://github.com/KHC-FTW/CS3343_24-25_Group-Project_CityU-Cinema-System.git
-
cd into the project directory:
cd CS3343_24-25_Group-Project_CityU-Cinema-System
-
Compile the source code. The following commands will compile the source code and place the compiled
.class
files in thebin
directory:javac -classpath ./src ./src/release/Main.java -d ./bin
-
Run the program:
java -classpath ./bin release.Main
-
Clone the repository (omit if already followed step 1 above):
git clone https://github.com/KHC-FTW/CS3343_24-25_Group-Project_CityU-Cinema-System.git
-
cd into the project release directory:
cd CS3343_24-25_Group-Project_CityU-Cinema-System/release
-
Run the JAR file:
java -jar "CityUCinemaSystem_V2.jar"
or double click the
Autorun.bat
file (Windows operating system only)
- In the option selection menu, user can enter the option value e.g.
1
or the name of the command (case-insensitive) e.g.login
to execute the option - Some commands allow user to enter
q
orquit
to terminate the process early - If the option menu is hidden, entering
l
orlist
can show the menu again
- Login as admin (username:
admin
; password:password
) - (At start, it is not suggested to use as guest or log in/register as member since admin has to first add and schedule movies)
- After logged in as admin, select
add movies
oradd default movies
(for quick test purposes) - After successfully adding at least 5 valid movies, select
schedule movies
and choose a scheduling strategy - And boom! The system has been successfully set up and you can now freely use as admin, log out as guest or log in/register as member to enjoy the full functionalities available in each user's option menu.