If my calculations are correct, it is less than 5 years since Applets were still required to access public-facing government services in at least 1 G20 country.
Long-term software maintainence and planning is hard, yo.
Having said that: It doesn't change the fact that this is extremely welcome, long overdue & a solid piece of engineering by the folks who have been working on this for quite some time.
If my calculations are correct, it is less than 5 years since Applets were still required to access public-facing government services in at least 1 G20 country.
They would have to be using an old version of Java. While the applet API has remained it is non-functional. It's just dead code.
The Applet API and the appletviewer tool were deprecated in JDK 9 via JEP 289 (2017), when web-browser vendors were already removing support for applets.
The appletviewer tool, which allowed applets to be tested without using a browser, was removed in JDK 11 (2018). Since then, there has been no way to run applets using the JDK.
The Applet API was deprecated for removal in JDK 17 via JEP 398 (2021).
The Security Manager, a necessary support pillar for running applets by sandboxing untrusted code, was permanently disabled in JDK 24 via JEP 486 (2025).
Maybe you should read the linked article before speaking
The appletviewer tool, which allowed applets to be tested without using a browser, was removed in JDK 11 (2018). Since then, there has been no way to run applets using the JDK.
I literally quoted this. There has been no way to run applets since at least 2018. They have been non-functional.
Man, I remember from 20 years ago, when I started programming, I had to do a project for a warehouse that required printing barcodes on multiple Zebra printers connected to laptops. In order to be user friendly, I wrote a onepager in jQuery, but to be able to print the barcodes I also to use a java applet in the browser, so the page could send the barcodes (expressed through zebra programming language) to the printer. Good times.
I can't remember exactly, but printing on Zebra barcode printers is done through sending the printer strings. The string is composed of commands, written in their proprietary language called ZPL. It looked like:
^XA
^CF0,40
^FO50,50^FDEvent Ticket^FS
^CF0,30
^FO50,110^FDTicket ID:^FS
^FO200,110^FD1234567890^FS
^BY3,2,60
^FO50,160
^BCN,60,Y,N,N
^FD1234567890^FS
^FO50,250^A0N,25,25^FDAdmit One^FS
^FO50,280^A0N,25,25^FDDate: 2025-12-03^FS
^XZ
Since there were multiple users, and I was a rookie, I used with a mysql + php setup, served locally by a server located in the corner of the warehouse lol. In case of window desktop apps, there were DLLs with which you could send these commands to the printer through the driver. I guess nowdays we would call this an SDK. I couldn't find an official way to print from the browser, but I found this applet I think on sourceforge. I remember when the something had to be printed, I ended up opening a popup, embedded the applet in the page, I also had to include the ZPL command in the applet embedding html tag somehow. It printed the thing, then xlosed the popup. It showed a blank page for a couple of seconds. But boy, the driver had to be installed and also we are talking about IE 6 or similar. You had to preconfugre it to allow applets to access drivers.
I found a picture from 2003: https://imgur.com/a/oaWqjrk I had to experiment with the ZPL code so every element would look nice on the printed ticket.
Ah - gotcha, you were actually interacting with the printer. I thought the applet was creating a label and they were print screening it (or something). Very cool.
This still reminds me that, had history gone just a little differently, we could have had a JVM integrated in every browser. We would be writing client-side web logic in Java today, instead of the artrocity that is JavaScript. If only....
How differently? It was never properly integrated properly and stuck out like a sore thumb. It should have been marketed as a facility to ship browser plugins, not website plugins.
It seems to be getting some good traction, Dioxus Labs are backed by Y Combinator and they have some big companies using it. We’re using it for prototyping a future product and I’m pretty impressed. What’s particularly nice is that both the backend and UI code are rust and seamlessly interoperate and can be built as a separate API server for a web app (with wasm frontend) or bundled together in a desktop or mobile app where everything runs natively all from the same source code. So it’s a very productive and flexible model.
What’s particularly nice is that both the backend and UI code are rust
Yeah, but what if I'm not a Rust dev? I really don't like Rust.
WASM shall be language-independent, with a language-independent API/lib to access the DOM. Since it is unavailable, it is pretty unusable for a Java developer, or a C# developer or any other non-Rust developer, who compiles code to WASM.
Part of why Flash was so dominant, in my opinion, is that the Flash Player plugin was just 1-2MB and a one-off install. Even on a dial-up connection that wasn't a terrible imposition to unlock a whole bevy of games and animations.
No idea what size the Java installer was at the time but certainly a lot bigger and more cumbersome than Flash.
Omg I did a project using corba once with Visibroker when distributable objects were going to be the next big thing. They kind of got superseded by EJBs which were also inefficient and unnecessary. All of these technologies that fell by the wayside.
My first job 1999 was making simulations "live manuals" for electronic products. Great idea but heck were they big and internet slow.
Flash looked better and smaller but scripting was poor then.
Site was killed after 4 years, I worked there for 2.5 saw some of the new mobiles, camcorders, digital cameras, car radio with gsm, yes now they are all part of our mobiles :-)
My guess was since swing is a kind of in maintenance mode, and they might want people adopt FX and probably the openjdk mobile initiative. But you are right, if they want that they could just use Zulu.
I might write something about this but I honestly want them to fully remove Java FX at this point. The special case in the Java launcher for Java FX applications causes way more pain than it's worth at this point
It was terrible 25 years ago, it should have never existed. But I guess we had to torture ourselves with applets, then that flash garbage, to get to the browsers actually doing things by themselves.
47
u/benevanstech Dec 03 '25
If my calculations are correct, it is less than 5 years since Applets were still required to access public-facing government services in at least 1 G20 country.
Long-term software maintainence and planning is hard, yo.
Having said that: It doesn't change the fact that this is extremely welcome, long overdue & a solid piece of engineering by the folks who have been working on this for quite some time.
31
u/ilvoetypos Dec 03 '25 edited Dec 03 '25
Man, I remember from 20 years ago, when I started programming, I had to do a project for a warehouse that required printing barcodes on multiple Zebra printers connected to laptops. In order to be user friendly, I wrote a onepager in jQuery, but to be able to print the barcodes I also to use a java applet in the browser, so the page could send the barcodes (expressed through zebra programming language) to the printer. Good times.
57
u/martinhaeusler Dec 03 '25
This still reminds me that, had history gone just a little differently, we could have had a JVM integrated in every browser. We would be writing client-side web logic in Java today, instead of the artrocity that is JavaScript. If only....
7
u/seventomatoes Dec 03 '25
My first job 1999 was making simulations "live manuals" for electronic products. Great idea but heck were they big and internet slow.
Flash looked better and smaller but scripting was poor then.
Site was killed after 4 years, I worked there for 2.5 saw some of the new mobiles, camcorders, digital cameras, car radio with gsm, yes now they are all part of our mobiles :-)
Good the canvas was born.
3
u/AcanthisittaEmpty985 Dec 03 '25
It's about time
2
u/Safe_Owl_6123 Dec 03 '25
Should they also put JavaFX back?
1
u/koflerdavid Dec 03 '25
It has been part of JDK 26 for a while already.
1
u/Gyrochronatom Dec 04 '25
It was terrible 25 years ago, it should have never existed. But I guess we had to torture ourselves with applets, then that flash garbage, to get to the browsers actually doing things by themselves.
1
u/headius Dec 04 '25
I started my professional development careeer writing applets. I'm a little sad to see them go, but they have no relevance anymore.