The project presents the operation of a vending machine selling snacks and drinks. It was made in the Java graphical user interface using the Swing library. The software allows you to throw money into the machine and buy the selected product. The program retrieves product data from a database using JDBC.
The project was created to fulfill the requirements of the university course Object-Oriented Programming in the Computer Science degree. The project received a grade of 5.0 on a scale from 2 to 5.
- Java SE 19
- Swing
- JDBC 4.3
- MySQL Connector/J 8.0.30
- JACo MP3 Player 0.9.3
- Maven 4.0.0
For running this program you need:
- Install XAMPP.
- Execute command
git clone https://github.com/Ilvondir/java-vending-machine
. - Open XAMPP and start Apache with MySQL.
- Type
localhost
in your browser and openphpMyAdmin
. - Import database from
sql/java-vending-machine.sql
. - Install library from
src/main/resources/lib
. - Open and compile project in Java IDE.