Hi Radu,
The last test I have made was to exclude jna-plateform from oxygen-sdk via pom maven like this :
Code: Select all
<dependency>
<groupId>com.oxygenxml</groupId>
<artifactId>oxygen-sdk</artifactId>
<version>${oxygen.version}</version>
<exclusions>
<exclusion>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
</exclusion>
</exclusions>
</dependency>
And add the version 5.3.1 of jna-platform in the same pom file.
And here was the error I get :
Code: Select all
java.lang.UnsatisfiedLinkError: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native
at com.sun.jna.Native.initIDs(Native Method) ~[oxygen-patched-jna-21.1.0.2.jar:4.1.0 (b4)]
at com.sun.jna.Native.<clinit>(Native.java:143) ~[oxygen-patched-jna-21.1.0.2.jar:4.1.0 (b4)]
at com.sun.jna.Pointer.<clinit>(Pointer.java:41) ~[oxygen-patched-jna-21.1.0.2.jar:4.1.0 (b4)]
at com.sun.jna.Structure.<clinit>(Structure.java:1949) ~[oxygen-patched-jna-21.1.0.2.jar:4.1.0 (b4)]
at oshi.jna.platform.windows.VersionHelpers.IsWindowsVersionOrGreater(VersionHelpers.java:56) ~[oshi-core-3.13.4.jar:3.13.4]
at oshi.jna.platform.windows.VersionHelpers.IsWindows7OrGreater(VersionHelpers.java:135) ~[oshi-core-3.13.4.jar:3.13.4]
at oshi.software.os.windows.WindowsOperatingSystem.<clinit>(WindowsOperatingSystem.java:103) ~[oshi-core-3.13.4.jar:3.13.4]
at oshi.SystemInfo.getOperatingSystem(SystemInfo.java:97) ~[oshi-core-3.13.4.jar:3.13.4]
at com._4dconcept.quadrolic.asymmetric.systemid.strategy.v2.V2SystemIdStrategy.createPayload(V2SystemIdStrategy.java:36) ~[quadrolic-systemid-common-2.1.1-SNAPSHOT.jar:na]
at com._4dconcept.quadrolic.asymmetric.systemid.strategy.v2.V2SystemIdStrategy.check(V2SystemIdStrategy.java:59) ~[quadrolic-systemid-common-2.1.1-SNAPSHOT.jar:na]
at com._4dconcept.quadrolic.asymmetric.systemid.SystemId.check(SystemId.java:60) ~[quadrolic-systemid-common-2.1.1-SNAPSHOT.jar:na]
at com._4dconcept.quadrolic.asymmetric.LicenseLoader.registerLicense(LicenseLoader.java:90) ~[quadrolic-asymmetric-2.1.1-SNAPSHOT.jar:na]
at com._4dconcept.adam.author.standalone.AuthorComponentLicenseManager.checkLicense(AuthorComponentLicenseManager.java:64) ~[author-core-core-4.3.0-SNAPSHOT.jar:na]
at com._4dconcept.adam.author.standalone.ApplicationLauncher.launch(ApplicationLauncher.java:107) ~[author-core-core-4.3.0-SNAPSHOT.jar:na]
at com._4dconcept.adam.author.custo.adam.CustoLauncher.main(CustoLauncher.java:77) ~[classes/:na]
I made this test because of the result of
which reveals that oxygen-sdk was the only one to get jna-platform 4.1.0.
I have already started to create a separate class loader for our need, thanks.
But it is a big development to workaround an old version of jna.
Regards,
Isabelle