Skip to content

Latest commit

 

History

History
74 lines (57 loc) · 4.63 KB

README.md

File metadata and controls

74 lines (57 loc) · 4.63 KB

Engineering Java Calculators Suite

A unified Linux Zenity launcher, custom vector icon set, and desktop menu entry for five classic ("old but gold") Java engineering calculator packages — exposing 16 standalone thermodynamic, vessel, psychrometric, ODE, and math tools.

Engineering Calculators Suite Launcher on Raspberry Pi 5


Requirements

  • Operating System: Linux desktop (tested on Raspberry Pi 5 / XFCE; requires bash, zenity, and an X11 or Wayland desktop session). (The underlying .jar files are Java, but this unified launcher and .desktop integration require Linux.)
  • Java Runtime (User-Provided): No JRE is bundled with this repository — you must provide a compatible Java runtime.
    • Recommended: Java 17 LTS (openjdk-17-jre or Eclipse Temurin 17 JRE)
    • Supported range: Java 8 – Java 21
    • Not compatible with Calc1 and Calc3: Java 26 / Java 27+ removed java.applet.Applet and javax.swing.JApplet (JEP 504), causing NoClassDefFoundError. Java 17 runs all 16 tools cleanly.

Install Dependencies (Debian / Ubuntu / Raspberry Pi OS / Armbian)

sudo apt update && sudo apt install -y openjdk-17-jre zenity

Quick Start

# 1. Launch the persistent Zenity GUI
./launch_calculators.sh

# 2. (Optional) Register in your Linux Start Menu (with 16 right-click actions)
./install-desktop.sh
  • Persistent launcher: Double-click any row (or Ctrl+click multiple rows and click Launch). The launcher stays open until you click Close or press Esc.
  • Direct CLI launch: Run any tool(s) directly by ID:
    ./launch_calculators.sh steamj
    ./launch_calculators.sh mathpad-steam mathpad-mollier psychro
  • Custom Java path override: launch_calculators.sh automatically searches /usr/lib/jvm/ for Java 17/11/21/8 before falling back to $PATH, or you can point it to any JRE explicitly:
    ENG_CALC_JAVA=/path/to/jre17/bin/java ./launch_calculators.sh

Included Calculators (16 Tools)

Suite Calculator CLI ID Capabilities
Calc1 Steam/J — Steam & Condenser steamj $\mathrm{H_2O}$ steam/water properties & HEI surface condenser (SI & US)
Calc2 TankCalc — Storage Tank tankcalc Tank volume, dip/strapping tables, surface area, mass & 3D view
Calc3 MathPad — Steam & Water mathpad-steam Thermodynamic steam & water property tables
Calc3 MathPad — Steam Props + Graphs mathpad-steam-graph Steam properties with live $P\text{-}V$, $P\text{-}h$, $P\text{-}T$, $h\text{-}s$ & $T\text{-}s$ state plots
Calc3 MathPad — Gas Properties mathpad-gas Ideal & real gas properties and gas tables
Calc3 MathPad — Mollier Chart ($h\text{-}s$) mathpad-mollier Interactive enthalpy–entropy ($h\text{-}s$) steam diagram
Calc3 MathPad — $T\text{-}s$ Diagram mathpad-ts Interactive temperature–entropy ($T\text{-}s$) steam diagram
Calc3 MathPad — Steam Charts (4-in-1) mathpad-charts Multi-diagram switcher for $h\text{-}s$, $P\text{-}h$, $P\text{-}T$ & $T\text{-}s$ charts
Calc3 MathPad — Unit Converter mathpad-unit Engineering & scientific SI $\leftrightarrow$ US unit conversions
Calc3 MathPad — Periodic Table mathpad-period Interactive periodic table & atomic property lookup
Calc3 MathPad — Curve Fitting mathpad-fitting Polynomial, exponential, Fourier series & cubic spline regression
Calc3 MathPad — Function Plotter mathpad-plot 2D mathematical expression & $f(x)$ curve plotting
Calc3 MathPad — Matrix Calculator mathpad-matrix Matrix algebra, determinants, inverses & linear systems
Calc3 MathPad — Scientific Calculator mathpad-calc Expression-based engineering scientific calculator
Calc4 GaX Psychrometrics psychro ASHRAE moist-air properties ($\mathrm{DB}$, $\mathrm{WB}$, $\mathrm{DP}$, $\mathrm{RH}$, $W$, $H$, $V$; SI & IP)
Calc5 ODE Toolkit odetoolkit Numerical ODE solver ($dy/dt$), phase portraits, 3D attractors & .ode examples

Troubleshooting

  • Launch log: /tmp/eng-calculators-java.log records the resolved Java binary and any JVM stderr output.
  • NoClassDefFoundError: java/applet/Applet or javax/swing/JApplet: A Java 26+ runtime was used; install openjdk-17-jre or set ENG_CALC_JAVA=/path/to/java17/bin/java.
  • Moved folder: Re-run ./install-desktop.sh to refresh ~/.local/share/applications/engineering-calculators.desktop with the new paths.