Oriel is to Java what Electron is to JavaScript.
Oriel is a library for building desktop applications in Java with an interface written in HTML and CSS. It is the Java equivalent of Electron and takes its inspiration from there: an embedded Chromium draws the window, while the application itself stays an ordinary Java program with full access to the JVM and everything that runs on it.
Where Electron pairs Chromium with Node.js, Oriel pairs it with Java. The pages are rendered on the server side with Thymeleaf and made interactive with htmx, so an interface needs no JavaScript framework and no build step of its own.
The wiki explains Oriel and how to build an application with it:
- Getting started: the smallest application, with one view, one action and one window
- Actions and views and templates
- The server and its security
- The window: the frame, resizing, file dialogs, X11 and Wayland
- Testing an application with the test-jar helpers
- Building and packaging
Oriel needs Java 25. Build and test it with the Maven wrapper:
./mvnw verifyReleases are made from tags, and an application fetches them through JitPack, which builds the tag it is asked for:
<repositories>
<repository>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.unigrid-project.oriel</groupId>
<artifactId>oriel-window</artifactId>
<version>0.0.1</version>
</dependency>While working on Oriel itself, ./mvnw install puts it in the local Maven repository instead, as org.unigrid.oriel at the version in the pom.
Oriel is free software, licensed under the GNU Lesser General Public License, version 3.
