What is FatCalc?
FatCalc is a simple body fat calculator. You need a fat caliper or skinfold caliper in order to use this program in a proper way.

Features
  • supported 8 different skinfold methods
  • metric and imperial systems supported
  • supported languages English and Dutch
  • cross-platform

System requirements
  • Version 1.6.0 (tested with version 1.6.0ga5)


FatCalc on an eComStation machine with Open JDK


Installing FatCalc
Download fatcalc-os2.zip. This is the last version with the Dutch language. Make a directory/map with the name "fatcalc" or something you like. Open de zip file and copy the files to the new created directory/map. That's it!

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

  • [drive: java] = drive with Java
  • [drive: fatcalc] = drive with FatCalc

should be replaced with real drive letters. Save the file and name it "fatcalc.cmd" or use the file from the distribution. This file is copied to the "fatcalc" directory/map. Furthermore, different paths?, adjust according to your needs.
Create a new program object. Specify the path and file name: "[drive: fatcalc]\fatcalc\fatcalc.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 "FatCalc". I have added an OS/2 icon in the distribution.

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

Download
In the file you can find the program, the above command file (all drive letters are on set to C:) and an OS/2 FatCalc icon: fatcalc-os2.zip.

revision April 20, 2020