Jna version in 12.1
已回答
What version of jna.jar is included with IntelliJ 12.1? I'd like to build the matching native component for OpenBSD. Thanks.
请先登录再写评论。
Nevermind. I found it myself. java -cp <path to>/jna.jar com.sun.jna.Native outputs 3.4.0.
Reading this, I would assume that recent IntelliJ versions do not include jna.jar any more?
Oliver Kopp They do, only the lib is packed as part of lib/3rd-party-rt.jar.
The solution to solve the concrete issue was to add following to modules-info.java
requires com.sun.jna;
We already had
requires com.sun.jna.platform;
This worked in Gradle, but not in IntelliJ
Oliver Kopp
As far as I know, the support for the 2022.3 snapshots is available only with the Gradle IntelliJ Plugin
1.10.0-SNAPSHOT
version so far (as mentioned in the documentation). That is, assuming that your issue is related to plugin development.