Blackjack
This is a Blackjack Game based on Java. The game uses the SVG-Cards by David Bellot.

Features;
  • Split
  • Double
  • Insurance
  • Cheating

System requirements
  • Minimum JRE version 1.6.0 Build 27 GA5 (2013-02-17)


Blackjack on an eComStation machine with Open JDK


Installing Blackjack
Download the zip file Blackjack-1.0-bin.zip. Create a folder (directory) "blackjack" or something similar which fits your needs. Open the zipfile and copy everything to the new created folder (directory). Delete the file "Blackjack.sh", its for an other system. That's it!

The used blackjack.cmd file
Blackjack works with Open JDK in OS/2-eCS. I have made a "blackjack.cmd" file with the following contents;
@echo off
set CLASSPATH=
set BEGINLIBPATH=[drive: java]\JAVA160ga5\bin
set path=[drive: java]\JAVA160ga5\bin
[drive: blackjack]
cd [drive: blackjack]\blackjack
java -Duser.home=[drive: blackjack]\blackjack -jar blackjack.jar 2>blackjack-bugs.txt
I use 2 separate folders (directories), one for Java and one for Blackjack with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: blackjack] = drive with Blackjack

should be replaced by real drive letters. Adjust the file from the distribution below, ie. different drive and directories. Save "blackjack.cmd" and copy it to the "blackjack" folder(directory) or your choice of folder(directory).

Create a new program object. Specify the path and file name: "[drive: blackjack]\blackjack\blackjack.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "Blackjack". The download also has an OS/2 icon.

I want to point out that this is a way to start the program, OS/2 and its successors do have much more ways for starting a java program.

Parameters / options explained
  • The specification "-Duser.home=[drive: blackjack]\blackjack" will ensure that Blackjack will save all necessary files in own directory instead of saving them in the home directory.
  • The addition "2>blackjack-bugs.txt" ensures that errors are saved in the file "blackjack-bugs.txt". The 2 in "2>" is not a typo! The file stays empty on my machine, good sign.

Download
In the file you can find all necessary files, all drive letters in the command file are on set to C:. You can download it here: blackjack-os2.zip.

revision May 27, 2020