Skip to content
yassinezerguine08 edited this page Oct 23, 2026 · 2 revisions

Oriel

Oriel

Oriel is to Java what Electron is to JavaScript. It lets you build a desktop application in Java whose interface is written in HTML and CSS. An embedded Chromium draws the window, and the application stays an ordinary Java program with the whole JVM behind it.

The pages are rendered on the server side with Thymeleaf and made interactive with htmx. A button asks the Java side for an action, the action answers with a view, and the view's HTML is swapped into the page. There is no JavaScript framework and no front-end build step.

How the pieces fit

┌──────────────── one Java process ────────────────┐
│                                                  │
│  BrowserWindow (oriel-window)                    │
│   └─ Chromium, drawing http://127.0.0.1:<port>/  │
│              │  htmx requests                    │
│              ▼                                   │
│  UiServer + Routes (oriel-server)                │
│   ├─ /static/…   your CSS, images, fonts         │
│   ├─ /oriel/…    htmx and Oriel's own scripts    │
│   ├─ /window/…   minimise, maximise, file dialogs│
│   ├─ /action/…   your @Action methods            │
│   └─ anything else → your index view             │
│                                                  │
│  Your code: controllers, views, templates        │
└──────────────────────────────────────────────────┘

Oriel comes as two modules:

Module What it holds
oriel-server The local HTTP server, the session guard, @Action, views and templates. It also ships a test-jar with helpers for testing an application.
oriel-window The window: an undecorated frame with Chromium inside, file dialogs, the window system on Linux, and where the browser engine lives.

Pages

Requirements

  • Java 25
  • Maven 3.9 (the repository ships a Maven wrapper)
  • Linux, macOS or Windows

Oriel is free software under the GNU Lesser General Public License, version 3.

Clone this wiki locally