Ultralight Discord | Ultralight Upstream |
Java wrapper for the Ultralight web engine
Got a question about Ultralight or Ultralight Java? Come chat with us on Discord!
Join the #java channel on the Ultralight Discord!
Ultralight Java is a complete wrapper over the Ultralight API including the JavaScriptCore API. Ultralight Java allows you to use the powerful Ultralight engine without leaving the Java platform.
Ultralight is a lightweight, cross-platform, HTML rendering engine for desktop apps and games. It supports most modern HTML5 and JavaScript features while still remaining small in binary size and memory usage.
See the Ultralight Upstream for more information.
Other than JCEF and the JavaFX WebView, Ultralight aims to be a lightweight UI engine. While it is capable of displaying fully fledged websites, it does so without using as much memory and CPU. It is the ideal solution for a simple, HTML based UI, while staying with the Java platform.
Moreover, the databind API is capable of translating Java objects directly to JavaScript, allowing interop and Java calls directly from within your JavaScript code, making integration with the UI even easier.
The library requires the Ultralight SDK, which can be downloaded here. The native binaries of the SDK need to be available at runtime and can be loaded using the provided Java methods.
Using the library with maven:
<dependency>
<groupId>com.labymedia</groupId>
<artifactId>ultralight-java-base</artifactId>
<!-- Replace with latest version from https://search.maven.org/artifact/com.labymedia/ultralight-java-base !-->
<version>%VERSION%</version>
</dependency>
If you need Javascript interop:
<dependency>
<groupId>com.labymedia</groupId>
<artifactId>ultralight-java-databind</artifactId>
<!-- Replace with latest version from https://search.maven.org/artifact/com.labymedia/ultralight-java-databind !-->
<version>%VERSION%</version>
</dependency>
dependencies {
// Replace with latest version from https://search.maven.org/artifact/com.labymedia/ultralight-java-base
implementation("com.labymedia", "ultralight-java-base", "%VERSION%")
// // Replace with latest version from https://search.maven.org/artifact/com.labymedia/ultralight-java-databind
// Remove the comments if you need Javascript interop
// implementation("com.labymedia", "ultralight-java-databind", "%VERSION%")
}
The latest version can usually also be found in the VERSION file on the master branch.
You will also need to download the Ultralight SDK and extract the bin
folder into a directory given to the Library
in order to provide the natives!
See Examples for more info.
YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler , YourKit .NET Profiler, and YourKit YouMonitor.
For Ultralight Java LGPLv3 is being used, however, Ultralight itself is licensed under a custom proprietary license. See Ultralight licensing for further information.