You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Required Java version
4
4
5
-
To use Java-GI, download and install [JDK 22](https://jdk.java.net/22/)or newer. Java-GI uses the "Panama" Foreign Function & Memory API that is only available since JDK 22.
5
+
To use Java-GI, download and install [OpenJDK](https://jdk.java.net/) version 22 or newer. (Java-GI uses the Foreign Function & Memory API introduced in JDK 22.)
6
6
7
7
## Dependencies
8
8
@@ -20,7 +20,7 @@ Next, add the dependencies. For example, to add Gtk as a dependency:
20
20
<dependency>
21
21
<groupId>org.java-gi</groupId>
22
22
<artifactId>gtk</artifactId>
23
-
<version>0.14.0</version>
23
+
<version>0.14.1</version>
24
24
</dependency>
25
25
```
26
26
@@ -32,7 +32,7 @@ Next, add the dependencies. For example, to add Gtk as a dependency:
32
32
}
33
33
34
34
dependencies {
35
-
implementation 'org.java-gi:gtk:0.14.0'
35
+
implementation 'org.java-gi:gtk:0.14.1'
36
36
}
37
37
```
38
38
@@ -44,20 +44,20 @@ Next, add the dependencies. For example, to add Gtk as a dependency:
@@ -67,7 +67,7 @@ Next, add the dependencies. For example, to add Gtk as a dependency:
67
67
scope(main)
68
68
.include(dependency("org.java-gi",
69
69
"gtk",
70
-
version(0,14,0)));
70
+
version(0,14,1)));
71
71
```
72
72
73
73
This will add the Gtk bindings to the application's compile and runtime classpath. Other libraries, like `webkit`, `gstreamer`, `adw` and `gtksourceview` can be included likewise. The complete list of available libraries is available [here](https://search.maven.org/search?q=org.java-gi).
@@ -238,7 +238,7 @@ On most Linux distributions, Gtk will already be installed. Java-GI will load sh
238
238
239
239
### MacOS
240
240
241
-
On MacOS, you can install Gtk using Homebrew. Gtk needs to run on the main thread, therefore you need to set the parameter `-XstartOnFirstThread`. A complete Gradle `run` task will look like this:
241
+
On MacOS, you can install Gtk using Homebrew. Gtk needs to run on the main thread, therefore you need to set the parameter `-XstartOnFirstThread`. A typical Gradle setup will look like this:
242
242
243
243
=== "Gradle (Groovy)"
244
244
@@ -268,7 +268,7 @@ On MacOS, you can install Gtk using Homebrew. Gtk needs to run on the main threa
268
268
269
269
### Windows
270
270
271
-
On Windows, Gtk can be installed with MSYS2. A Gradle `run` task will look like this:
271
+
On Windows, Gtk can be installed with MSYS2. A typical Gradle setup will look like this:
0 commit comments