Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/webview/webview_java
- Owner: webview
- License: other
- Created: 2022-02-26T01:59:28.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T07:53:42.000Z (8 months ago)
- Last Synced: 2024-09-20T00:26:13.990Z (4 months ago)
- Language: Java
- Homepage:
- Size: 1.87 MB
- Stars: 64
- Watchers: 6
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.
## 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"]]
```