Settings

Theme

Show HN: Electron for Java. Build App with Java, JavaScript, HTML, and CSS

github.com

1 points by tanin a month ago · 0 comments · 1 min read

Reader

Hi everyone,

I've made a Java project template for building a desktop app with Java, JS, HTML, and CSS. This will enable you to build the frontend using your fav JS framework like Svelte, React, and others.

It's like Electron but for Java!

For now, it only supports Mac ARM. I'm working toward supporting other platforms as I am launching Backdoor, a self-hostable database querying and editing tool, on different platforms like Mac Intel, Windows, and Linux. Link here: https://github.com/tanin47/backdoor

The template comes with Webpack + Svelte + TailwindCSS + Daisy. However, you should be able to swap those out for your fave frameworks. It supports hot-reload the JS code. The final DMG is ~50MB; the most of it is a Java runtime.

Running in sandbox, packaging, and notarizing on Mac ARM works! This is probably the most difficult part of the whole template.

The repo: https://github.com/tanin47/java-electron

Please let me know if you have any questions or thoughts.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection