我在Java中读到了using native Window handles。我有downloaded the JNA 4.1.0 JAR file并添加到Eclipse Java Build Path。
但是,当我输入User32
并按 Ctrl + Space 时,Eclipse不会提供导入建议。
我尝试过:我创建了own User32 class like in this answer。
但是,我怀疑这是正确的做法。也许我太乐观了,但我希望它更容易......: - )
答案 0 :(得分:0)
正如评论中所指出的,我忘了将jna-platform.jar
添加到Java Build Path。