How to Run .class Files on Android

Run compiled Java CLASS files directly on your Android device.

Jar Runner was previously known as Jre4Android. If you used Jre4Android before, this is the same app under its new name.

Steps

  1. Open Jar Runner.
  2. Select CLASS mode.
  3. Choose your compiled .class file.
  4. Run and view output in the terminal.

Tips

Make sure your class has a valid public static void main(String[] args) method and that package names match the folder structure.