Skip to content

Playing the Console-Based Blackjack Game

To run the game, open a full command console or terminal (don't try to run from within IntelliJ IDEA). Use Maven's "clean" and "package" commands to build an executable JAR, and then run it. Click the tab below for details for your operating system:

./mvnw clean package

If the building and packaging succeeded (you may see some warnings, that's fine), you can run the resulting JAR file:

java -jar target/blackjack-1.0.2.jar

Avoid running this inside of the "git bash" terminal, as a number of folks have reported problems. Use the built-in Windows Command shell (cmd.exe), PowerShell, or install Windows Terminal.

mvnw clean package

If the building and packaging succeeded (you may see some warnings, that's fine), you can run the resulting JAR file:

java -jar target\blackjack-1.0.2.jar