NoSuchMethodError using JNA User32 platform map

后端 未结 2 789
太阳男子
太阳男子 2021-01-23 05:36

I received the following error on the first attempt of using the User32.Instance:

Exception in thread \"main\" java.lang.NoSuchMethodError: com.sun.jna.N

2条回答
  •  日久生厌
    2021-01-23 05:47

    Update the maven using below dependency, It worked for me.

        
            net.java.dev.jna
            jna
            4.5.1
        
    

提交回复
热议问题