Minesweeper
Minesweeper is a Minesweeper clone written in Java. There are three levels; beginner, intermediate and expert. The difference is a bigger grid and the number of mines; 10x10 with 10 mines, 16x16 with 40 mines and 22x22 with 80 mines. You can check sound on or off.

System requirements
  • Minimum JRE version is 1.6


Minesweeper on an eComStation machine with Open JDK


Installing Minesweeper
Download the file Minesweeper4java.jar. Create a folder(directory) "minesweeper" or something similar which fits your needs. Copy the jar file to the new created folder(directory). That's all!

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

  • [drive: java] = drive with Java
  • [drive: minesweeper] = drive with Minesweeper

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

Create a new program object. Specify the path and file name: "[drive: minesweeper]\minesweeper\minesweeper.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 "Minesweeper". The download also has an OS/2 icon.

Parameters / options explained
  • The specification "-Duser.home=[drive: minesweeper]\minesweeper" will ensure that Minesweeper will save all necessary files in own directory instead of saving them in the home directory.
  • The addition "2>minesweeperbugs.txt" ensures that errors are saved in the file "minesweeperbugs.txt". The 2 in "2>" is not a typo!

Download
In the file you can find the above command file (all drive letters are on set to C:) and an OS/2 Minesweeper icon: minesweeper-ecs.zip.

revision August 21, 2016