[tw5] Java in TiddliWiki

I wonder if there is any way to use Java (NOT javaScript) with TiddlyWiki? Even if only for local usage. Maybe it could be somehow possible to use .jsp pages for “Java tiddlers”, maybe with some usage of tomcat? Any helpful plugins?

P.S. Sorry if my english is bad.

Hi Андрей,

Haven’t been working with TW as much as a few months ago, but hopefully I can be some help here.

In HTML, we have what are called Java applets, which allow you to run Java code natively in the web browser.

A tutorial on these is available at
https://www.w3schools.in/java-tutorial/java-applets/.

You could probably put an HTML applet code directly into a tiddler, but if not, I’m sure someone else can think of some creative ways to squeeze html code into the tiddler. Can’t test right now as I’m away from keyboard, but let me know how it goes!

Hopefully this is useful for you!

Regards.
Finn Lancaster
www.finnsoftware.net
Open-source since 2019

Looks like what I need, I’ll try it tomorrow, thanks!

четверг, 4 ноября 2021 г. в 04:30:37 UTC+3, flanc...@gmail.com:

Alternatively, you could extend TiddlyWiki to support WebAssembly. This would allow you to dispatch tiddlers to the Wasm bridge, and then provide implementation in any language that supports compilation to WebAssembly. There’s definitely support for cross compiling Java bytecode to wasm bytecode (see the link I provided for more context.)

Cheers,

Norman

I think you will find that Java applets are no longer supported in any modern browser. They’ve been deprecated since Java 9 and are slated for complete removal from the platform in a future release. This StackOverflow provides more detail.

Actually, I’d forgotten - applets were removed entirely in the latest LTS version of Java, 11, released in September 2021. So that’s a path with little future.

You might be able to create some Tiddlywiki JavaScript code that makes REST API calls to some Tomcat/Java app server instance running whatever kinds of backend code you would like.