Skip to content

Remove CheerpJ, tools.jar, and Java maze-solver build stage - #29

Merged
tytremblay merged 1 commit into
mainfrom
chore/remove-java-cheerpj
Nov 24, 2026
Merged

tytremblay merged 1 commit into
mainfrom
chore/remove-java-cheerpj

Conversation

@tytremblay

Copy link
Copy Markdown
Contributor

Removes the legacy CheerpJ/Java execution path, tools.jar (18 MB), @codemirror/lang-java, and the Maven maze-solver-java build stage now that all 39 lessons run on the server-side Python runner.

Changes

  • Deletes site/public/tools.jar, site/public/maze-solver.jar, site/src/lib/javaRuntime.ts, site/src/lib/mazeHarness.ts, and site/scripts/vendor-maze-solver.sh.
  • Removes @codemirror/lang-java and the vendor:maze-solver script from site/package.json.
  • Simplifies Dockerfile (drops the Maven maze-solver-java stage; Docker build context drops to 581 KB) and updates scripts/smoke-image.sh and .dockerignore.
  • Removes Java fallback branches from CodeBlock.tsx, JavaRunner.tsx, MazePlayground.tsx (now Copy for Python), LessonView.tsx, lessons.ts, and pythonRuntime.ts.

Verification

  • npm run lint && npm run build in site/: 0 errors.
  • python3 -m unittest discover -t . -s runner -p "test_*.py" -v: passed.
  • docker build -t hawk-learn:cleanup-test . && IMAGE=hawk-learn:cleanup-test bash scripts/smoke-image.sh: built in 8.8s and passed smoke test.

@tytremblay
tytremblay merged commit 570e926 into main Nov 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant