Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webview/webview_java

A Java wrapper of https://github.com/webview/webview
https://github.com/webview/webview_java

Last synced: about 2 months ago
JSON representation

A Java wrapper of https://github.com/webview/webview

Awesome Lists containing this project

README

        

# Webview

The Java port of the [webview project](https://github.com/webview/webview). It uses JNA and auto-extracts the required dll/dylib/so libraries for your current system.


browser




## Examples

[Example](https://github.com/webview/webview_java/blob/main/core/src/test/java/com/example/webview_java/Example.java)
[Bridge Example](https://github.com/webview/webview_java/blob/main/bridge/src/test/java/com/example/webview_java/BridgeExample.java)

## Supported Platforms






x86, x86_64







aarch64, x86_64







x86, x86_64, arm, aarch64

### Linux
Both MUSL and GLibC are supported out of the box. So it should work fine under distros like Debian, Arch, and Alpine.

### macOS

macOS requires that all UI code be executed from the first thread, which means you will need to launch Java with `-XstartOnFirstThread`. This also means that the Webview AWT helper will NOT work at all.

## Getting the code

[![](https://jitpack.io/v/webview/webview_java.svg)](https://jitpack.io/#webview/webview_java)

Replace `_VERSION` with the latest version or commit in this repo. If you want the Bridge bindings you'll need both `core` and `bridge`.

Maven

```xml


jitpack.io
https://jitpack.io

com.github.webview.webview_java
core
_VERSION

```

Gradle

```gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}

dependencies {
implementation 'com.github.webview.webview_java:core:_VERSION'
}
```

SBT

```sbt
resolvers += "jitpack" at "https://jitpack.io"

libraryDependencies += "com.github.webview.webview_java" % "core" % "\_VERSION"
```

Leiningen

```lein
:repositories [["jitpack" "https://jitpack.io"]]

:dependencies [[com.github.webview.webview_java/core "_VERSION"]]
```