Is there an alternative to making educational Java applets for physics simulations like projectile motion, gravity, etc?
If you want it to run in a browser, you could use PyJamas - which is a Python-to-Javascript compiler and set of tools.
I'm not sure how well it is maintained these days, though.