← Back to Demos

CheerpJ Demo: PhET's Faraday's Electromagnetic Lab

This is an IFrame-d demo of PhET's Faraday's Electromagnetic Lab Java Applet ported to the web thanks to CheerpJ.

On PhET's website, you can find 50+ Java simulations made with CheerpJ, that help student and teachers explore important concepts of phisics, chemistry and math domains

This demo demostrates how any Java Applet can be brought automatically to HTML5. This allows Java Applets to also run on Chrome Books, tablets, iOS and any other environment that is not easily Java-enabled.

How it works

Three key components

Ahead-of-Time
compilation

The CheerpJ compiler processes your Java bytecode ahead of time, generating an optimised HTML5 application that can run on any browser.


CheerpJ Runtime

In parallel to your converted application, CheerpJ provides a full, higly-optimised runtime in WebAssembly and JavaScript, keeping 100% of the execution client-side. Based on a full unmodified build of OpenJDK .

CheerpJ OS

CheerpJ provides a full system API, including file system support, networking, I/O, audio, printing, and much more.