I remember building apps as Java Applets and distributing it as a Jar file.
The memory gives me shivers. Debugging across devices was very painful.
Distribution is a strong word, but it was done by sending links to download the Jar file. Similar to how you would install an APK file on an Android device today.